Tuesday, 1 October 2013

jQuery .addclass to multiple div

jQuery .addclass to multiple div

I am trying to apply the class ".lightGray" that i defined earlier on to
div 4,5,7,and this current one. Not sure what I am doing wrong!
$("#Div8").click(function(){$("#Div4",
"#Div5","#Div7","#Div8").addclass(".lightGray");});

No comments:

Post a Comment