[EMAIL PROTECTED] wrote: > \$(".button").hover(function () { > var color = \$("input#color_code").val(); > var p_color = \$(this).css("background-color"); > \$(this).css({ backgroundColor:color }); > }, function () { > \$(this).css("background-color") == p_color; > }); >
Not sure if this is the problem (or just a typo in your posting) but you have a double equal operator in the second last line. If that doesn't correct the problem it'll be great if you could post a demo page online so we could better help you. It's always easier to read code than to imagine it.