Select3 methods
Method |
Returns |
Description |
val() |
string / array |
Retrieves current value of select. Returns array of strings if
select has multiple attribute, else returns a string.
|
open() |
N / A |
Opens select. |
close() |
N / A |
Closes select. |
val()
Try selecting different options and clicking the button.
HTML
Javascript
open() and close()
Mouse over this paragraph to open select, mouse out to close it.
HTML
Javascript