开发者

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()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜