Using the is() method to return a Boolean value .................................................................. 35
You can pass jQuery more than one selector expression ....................................................... 36
Checking wrapper set .length to determine selection .......................................................... 36
Creating custom filters for selecting elements ......................................................................... 37
Differences between filtering by numeric order vs. DOM relationships ................................... 38
Selecting elements by id when the value contains meta-characters ...................................... 41
Stacking selector filters ............................................................................................................ 42
Nesting selector filters ............................................................................................................. 43
Grokking the :nth-child() filter ............................................................................................ 44
Selecting elements by searching attribute values using regular expressions .......................... 45
Difference between selecting direct children vs. all descendants ............................................ 46
Selecting direct child elements when a context is already set ................................................. 46
Chapter 3 Traversing ............................................................................................................ 48
Difference between find() and filter() methods .............................................................. 48
Passing filter() a function instead of an expression ........................................................... 49
Traversing up the DOM ........................................................................................................... 51
Traversing methods accept CSS expressions as optional arguments .................................... 52
Chapter 4 Manipulation ........................................................................................................ 53
Creating, operating, and adding HTML on the fly .................................................................... 53
Grokking the index() method ................................................................................................. 54
Grokking the text() method .................................................................................................. 56
Update or remove characters using a regular expression ....................................................... 56
Grokking the .contents() method ......................................................................................... 57
Using remove() does not remove elements from wrapper set ............................................... 58
Chapter 5 HTML Forms ........................................................................................................ 59
Disable/enable form elements ................................................................................................. 59
How to determine if a form element is disabled or enabled ..................................................... 60
Selecting/clearing a single check box or radio button .............................................................. 60
Selecting/clearing multiple check boxes or radio button inputs ............................................... 61
Determining if a check box or radio button is selected or cleared ........................................... 62
How to determine if a form element is hidden ......................................................................... 62
Setting/getting the value of an input element ........................................................................... 63
Setting/getting the selected option of a select element ........................................................... 64
Setting/getting selected options of a multi-select element ....................................................... 64
Setting/getting text contained within a