I changed some of it and stopped using the checkboxes, but this would work
with the checks too. I need the ID attribute for something else, soI used
the REL attribute as proscribed.
$(".checkbox").click( function()
{
currentOption = parseInt($(this).attr("rel")) + 1;
$("#options div.checkbox").removeClass("checked");
$("#options div.checkbox").lt(currentOption).addClass("checked");
} );
I wish there was a way of getting the position in an array.
QUESTION OR FEATURE SUGGESTION
arrayPos() would return the index of the array.
So if I had 4 links with a class of "foo" and I clicked the third one,
$arrayPos(".foo", this) would return 3 (or 2 if it started at zero).
Maybe I should put this in a seperate message?
Glen
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/