|
|
JavaScript drop down listboxList box or drop down list box is very common in forms used in web pages. We can give option to visitor to select from a list by clicking and selecting one ( or more ) out of a pre defined list. So the advantage is visitor can't give any choice of its own.
You can read more on basics of drop down list box with style property in our html section.
We can add many JavaScript controls to list boxes by various properties and methods. We will develop some scripts which use these controls and give desired output. We will start with some basic script and then develop complex ones.
Triggering JavaScript function by using onChange event of a drop down listbox.
Dynamically we can add options to our list box through JavaScript.
We can also remove options from a drop down list box
Moving or shifting options from one list box to another list box
The options of second list box will change based on the selection of first list box by user.
We can populate list box by using data from a MySQL table.
While copying a set of form data to otehr fields we can pass the list box data also.
| |
| | | srinivas | 29-03-2010 |
|---|
| It is very good site for learners, who wants work with the php,asp etc.., can u provide more content to learners |
|
|
|
|
|
|