jQuery bug with opacity



Oops, try again. Please follow the instructions on the Full Preview page to test your code.

            $('div').fadeTo('fast', 1);
            $('div').fadeTo('fast', 0.5)


After writing the code as above, hit save & submit, and pay attention to the messages shown in the bottom left-hand corner, and do as told.

I hope this helps! :slight_smile:


Yeah, I think the jQuery thing is broken.


Agreed - I've followed all directions. Seems to be a bug.


Add code $('div').hide(); into mouse enter & mouseleave.


change the opacity from 0.5 to 1 in the stylesheet.css section and then write this code in your script.js section:

$(document.ready(function() {
$('div').mouseenter(function() {
$(this).fadeTo('fast', 1);


thanks Liviajuka, that works!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.