jquery adding new class aconfiguration on id?

Posted by dupdup on Stack Overflow See other posts from Stack Overflow or by dupdup
Published on 2010-05-19T15:39:41Z Indexed on 2010/05/19 15:50 UTC
Read the original article Hit count: 220

Filed under:

<area shape="poly" coords="63,10,64,38,89,37,91,10" class={"strokeColor:'0000ff',strokeWidth:5, fillColor:'ff0000',fillOpacity:0.6}" href="#" id="x1">

There is a imagemap in my html and I want to dynamicly add a new configuration "alwaysOn:true" to the class attribute.

$("#x1").click(function(){alert(8);})

I am newbea I can add click listener to it but cannot figure out how to add config option How can I do that with jquery?

© Stack Overflow or respective owner

Related posts about jQuery