[jQuery] Zebra table with hidden rows

2007-07-05 Thread backflip
I'm using the following code to style a table: $("table.xy tr:nth-child(odd)").addClass("odd"); But before doing that I'm hiding some rows: $("tr#xy").hide(); Now the zebra pattern isn't working any more (it's an abnormal zebra), of course. How to apply the zebra-stuff just to the visible

[jQuery] Multiple-select-box: set multiple to false

2007-07-05 Thread backflip
I'm trying to set a multiple-select-box to multiple=false, but neither $("[EMAIL PROTECTED]").multiple = false; nor $("[EMAIL PROTECTED]").attr('multiple',''); nor $("[EMAIL PROTECTED]").attr('multiple','false'); nor $("[EMAIL PROTECTED]").removeAttr('multiple'); works. Has anybod