Selecting a control using ID and displaying its value
This recipe demonstrates how to access basic ASP.NET controls, such as CheckBoxList
, TextBox
, and RadioButtonList
on a web form using jQuery's #identifier
selector. The constructs used in this example are as follows:
Construct |
Type |
Description |
---|---|---|
|
jQuery selector |
This selects an element based on its |
|
jQuery object |
This refers to the current jQuery object |
|
jQuery selector |
This selects checked input elements |
|
jQuery event binder |
This binds a handler to the |
|
jQuery method |
This iterates over the matched elements and executes a function for each element |
|
jQuery method |
This finds all elements that match the filter |
|
jQuery method |
This returns the HTML content of the first matched element or sets the HTML content of every matched element |
|
jQuery method |
This returns a Boolean value if the matched element satisfies... |