$(’div.panel’)
All divs with class=“panel”
$(’p#intro’)
The paragraph with id=“intro”
$(’div#content a:visible’)
All visible links inside the div with id=“content”
$(’input[@name=email]’)
All input fields with name=“email”
$(’input[id*=plan]’)
All input fields whose id contains string ‘plan’
$("table.striped > tr:odd")
Odd rows in a table with a striped class
$(’a[@href^="http://"]’)
All external links (links that start with http://)
$(’p[a]’)
All paragraphs that contain one or more links
$("p:even");
All even <p> elements.
$("tr:nth-child(1)");
The first row of each table.
$("body > div");
Direct <div> children of <body>.
$("a[href$=pdf]");
Links to PDF files.
$("body > div:has(a)")
Direct <div> children of <body>-containing links.
$("td:empty)")
Empty table cells
$(’#plugins td.name’).filter(’:contains(ImageManager)’)
In the <div id=plugins>, find <td class=name> which contains the text ImageManager
More on Jquery.
