On most my pages I have a specific div that holds the title for that page:
<div id="pagetitle">Some Title</div>
And usually immediately after is a table.
I want to select all tables, but only tables after the #pagetitle div.
I intend to add some css to just those tables. Currently I am having to create a class and add that class to all the tables. But I have tons of pages.
Current code:
$('table.valigntop tr td').css('vertical-align','middle');
I need a little help with creating a cool jquery select statement that selects all tables that exist after the #pagetitle element. Whether it’s the best way for my sites is still to be determined.
Alternatively, you can also use
nextAll()Here’s an example http://jsfiddle.net/Q8Af6/HTML:
CSS:
JS:
EDIT JS: Add the
tdselector http://jsfiddle.net/Q8Af6/1/