JQuery Selector for table with hidden row - alternate row colouring
问题 I have a table, and usually i use this selector to apply odd and even row: table.find('tbody tr:even').addClass('even'); table.find('tbody tr:odd').removeClass('even'); My Table has rows being inserted at various places, hence why i remove it from the odd rows. I now have certain rows hidden using jQueryTrObject.hide(); I want to apply the same styling as before, so that alternate rows, as far as the user is concerned are marked up odd and even, and i'd like it to take into account of hidden