I tried this which works but is a pain too! Not sure if there is a way to combine several split() in one.
var elementName = sym.$("Rectangle");
var myClass = elementName.attr('class');
var myId = elementName.attr('id');
var cName = (myClass).split(myId).join('');
var ClassName = cName.split('_id').join('');
I feel like when i started yazo.net in 1998…
… learning, and learning !
1 person found this helpful
Learning is fun to me! This is part of the reason I really like this forum. I am starting a blog that will recap everything I learned here and will be a way for newbies to quickly find answers to often asked questions.
Thanks a lot. I've seen my mails with the notification of this post. I've just posted a full text of all my tests.
If i can help you in a way with your blog, it will be a pleasure for me.