DKean
DKean

Reputation: 2099

How to send a Raphael element .toBack()

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

Answers (1)

Paul
Paul

Reputation: 141839

This will see all elements with the class "dot20" to have a z-index of 0:

$(".dot20").css({zIndex: 0});

Upvotes: 2

Related Questions