Jquery codebit link


#1

I cant seem to put the link in for the jquery tab. It was the same with css (it got fixed) so I know the link would be slightly different.


#3

This is the line you need to add:

<script type="text/javascript" src="script.js"></script>

Add it after the tags: <title></title>


#4

duh I tried that 100 times it doesn't work.


#5

@dxreeper Well how about you help us help you, rather than shooting down what didn't work when you tried it.

Please post your code (formatted, both HTML and JavaScript), a link to the exercise you're on, and what you've tried so far.


#6

omg said it was a codebit


#7

I fixed it never mind


#8

though how do I instead of increasing or decreasing opacity make it dark when I .mouseenter


#9

@dxreeper Something like this:

$('element').hover(function() {
  $(this).css("background-color", "black")
                                // ↑ modify this color to whatever you want
});

#10

ya but it will put it there permanently so I need to return it to the same color


#11

never mind
it worked