jQuery provides a useful .filter()
method to filter elements using a selector
or custom
function. In this recipe, we will filter the rows of a GridView
control on the client side using this method. The constructs used in this example are summarized in the following table:
Construct |
Type |
Description |
---|---|---|
|
jQuery selector |
This selects an element based on its |
|
jQuery selector |
This matches all elements with the specified CSS class |
|
jQuery selector |
This selects all elements with the specified HTML tag |
|
jQuery object |
This refers to the current jQuery object |
|
jQuery event binder |
This binds a handler to the |
|
jQuery selector |
This selects all elements with the index equal to |
|
jQuery method |
This prevents the default action of the event from being triggered |
|
jQuery method |
This returns elements that match a selector... |