Reputation: 2099
Can I use jQuery to send a Raphael element by class back, like sending something back to z-index=0:
Several Raphael elements class="dot20" need all to be sent back
j=2
jj = "c"+j*10
$("."+jj).toBack();
I get the following error from the FF Firebug: $("." + jj).toBack is not a function [Break On This Error] $("."+jj).toBack();
The above does not work. Do I need some squiggly brackets?
I'm lost
TIA
Dennis
Upvotes: 0
Views: 885
Reputation: 141839
This will see all elements with the class "dot20" to have a z-index of 0:
$(".dot20").css({zIndex: 0});
Upvotes: 2