Multiple selectors
Multiple selectors
I'm very new to jQuery and I'm sure this is much simpler than what I'm trying to make it. I am trying to exclude tables that have a particular class assigned to them and then add a class to the odd rows in the remaining tables.
I can use the following to stripe table rows in tables that have a particular class, but I want to do just the opposite and exclude those tables and stripe the rows in the remaining tables.
This is what I have come up with so far.
<script type="text/javascript">
$(function() {
$(".no-stripe tr:odd").addClass("tablestripe");
});
</script>
I've tried using :not but haven't found how exactly to use it for this situation. Thanks for suggestions!