1. jquery obtains the text value of the selected select statement.
Var checkText = $ ("# slc1"). find ("option: selected"). text ();
2. jquery obtains the value of the selected select statement.
Var checkValue = $ ("# slc1"). val ();
3. jquery obtains the index value of the selected select statement.
Var index = $ ("# slc1"). get (0). selectedIndex;
4. jquery sets the item with an index value of 1 as the currently selected item.
$ ("# Slc1"). get (0). selectedIndex = 1;
5. jquery sets the item of value 2 as the currently selected item.
$ ("# Slc1"). val (2 );
6. jquery sets the text value to "qingteng Garden" as the selected item.
$ ("# Slc1 option [text = 'qingyuan W']"). attr ("selected", true );
7. append an option to the specified select drop-down box (append to the end)
$ ("# Slc2"). append ("" + I + "");
8. insert an option into the select drop-down box (insert to the first position)
$ ("# Slc2"). prepend ("select ");
9. jquery deletes the last option in the select drop-down box.
$ ("# Slc2 option: last"). remove ();