jQuery selectmenu plugin value
I'm using the jQuery UI Selectmenu Plugin for styling my select fields. Now I have a general question to bring this code $(this).val()
to work wit开发者_StackOverflowh this plugin. After the onChange
event it should me give out the value of the current select field.
Many thanks!
From the docs -
VALUE Retrieves or selects the value of the current option.
// read
$('select#speedA').selectmenu("value")
// write
$('select#speedA').selectmenu("value", "VALUE")
$('#select_id').selectmenu('widget').find('option:selected').val()
精彩评论