> $(".content_table tr").mousedown(function() {
>
> var what = $(this).get(0).className;
>
> if( what == "alt over" || what == "over" )
> $(this).addClass("down");
>
> else $(this).removeClass("down");
>
> });
>
I haven't played with the class utility methods much yet and I am at work so
can't really dig too deep.. but the above might work better as
$(".content_table tr").mousedown(function() {
var t = $(this);
if(t.is("alt over") || t.is("over")) {
t.addClass("down"); }
else {
t.removeClass("down"); }
});
--
View this message in context:
http://www.nabble.com/Mouse-Down-Alternating-Colors-on-Tables-tf2069349.html#a5697613
Sent from the JQuery forum at Nabble.com.
_______________________________________________
jQuery mailing list
[EMAIL PROTECTED]
http://jquery.com/discuss/