In this recipe, we will use jQuery to add items to different ASP.NET controls, such as DropDownList
, ListBox
, and BulletedList
at runtime. The constructs used in this example are summarized as follows:
Construct |
Type |
Description |
---|---|---|
|
jQuery selector |
This selects an element using its |
|
jQuery function |
This transforms an array or object into another array |
|
jQuery method |
This inserts content at the end of each matched element |
|
jQuery event binder |
This binds a handler to the |
|
JavaScript function |
This prevents the default action of the event from being triggered |
|
jQuery event binder |
This triggers the focus event of an element or binds an event handler to the focus event |
|
jQuery method |
This inserts content at the beginning of each matched element |
|
JavaScript function |
This splits a string into substrings using... |