Selecting a control using the CSS class
This recipe will demonstrate how to access ASP.NET controls, such as Image
, Panel
, and BulletedList
based on the CSSClass
assigned to them. The constructs used in this example are as follows:
Construct |
Type |
Description |
---|---|---|
|
jQuery selector |
This matches all elements with the specified CSS class. |
|
jQuery method |
This returns a string with the required attribute value of the first matched element. It can also be used to set the attribute to the required value. |
|
jQuery event binder |
This binds a handler to the |
|
jQuery method |
This prevents the default action of the event from being triggered. |
|
jQuery method |
This hides the matched elements. |
|
jQuery method |
This returns a Boolean value if the matched element satisfies a given condition. |
|
jQuery method |
This gets... |