1$('td[name ="tcol1"]') // matches exactly 'tcol1'
2$('td[name^="tcol"]' ) // matches those that begin with 'tcol'
3$('td[name$="tcol"]' ) // matches those that end with 'tcol'
4$('td[name*="tcol"]' ) // matches those that contain 'tcol'
1<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
1$("*") // all elements
2$("p.demo") // <p> elements with class="intro"
3$("p:first") // the first <p> element
4$("p span") // span, descendant of p
5$("p > span") // span, direct child of p
6$("p + span") // span immediately proceeded by a p
7$("p ~ span") // strong element proceeded by p
8$("ul li:first") // the first <li> element of the first <ul>
9$("ul li:first-child") // the first <li> element of every <ul>
10$("ul li:nth-child(3)") // third child
11$("[href]") // any element with an href attribute
12$("a[target='_blank']") // <a> elements with a target "_blank" attribute
13$("a[target!='_blank']") // <a> elements with a target attribute value other than "_blank"
14$(":input") // all form elements
15$(":button") // <button> and <input> elements of type="button"
16$("tr:even") // even <tr> elements
17$("tr:odd") // odd <tr> elements
18$("span:parent") // element which has child element
19$("span:contains('demo')") // element conaining the specified text
20