Search code examples
jqueryjquery-uiselect-menu

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 with this plugin. After the onChange event it should me give out the value of the current select field.

Many thanks!


Solution

  • From the docs -

    VALUE Retrieves or selects the value of the current option.

    // read
    $('select#speedA').selectmenu("value")
    // write
    $('select#speedA').selectmenu("value", "VALUE")