I\'m trying to use jQuery
to change the background color of a
You have several problems:
$("#bgcolor")
background-color
.HTML:
Abder-Rahman
JS:
$("#bgcolor").click(function(){
$("#name").animate(
{backgroundColor: '#8B008B'},
"fast");}
);
Your code, fixed (and working with jQueryUI included): http://jsfiddle.net/andrewwhitaker/rAVj9/