html - jQuery SVG removeClass() -


ok after hours , hours trying figure out way this, have come nothing. knew need svg jquery plugin have , have gotten toggleclass() function work, i'm trying remove classes of group elements , add class group elements well:

$('g').removeclass().addclass('slice'); 

i came upon line of code removeclass documentation on jquery site.

ultimately desire have pie chart of skills when slice clicked, removed pie until slice clicked. once slice clicked previous slice returned pie , newly clicked slice pulled out. can see i'm getting @ checking out jsfiddle. i've managed slices pull out, i'm struggling getting them slide in when slice clicked.

jsfiddle example: http://jsfiddle.net/jrjacobs24/bhwch/30/

i've been trying go throuh documentation keith wood's plugin here:

http://keith-wood.name/svg.html#dom

but haven't had luck. appreciated. let me know if vague or needs clarity. thank in advance!

you should better consider .clicked state/class .slice elements. there no need remove .slice class.

have fiddle : http://jsfiddle.net/sinsedrix/akxtv/


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -