Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3 Method: Value only returning value of native select NOT setting value #833

Open
ghost opened this issue Oct 25, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 25, 2018

What is the current behavior?

There is not enough documentation to use the version 3 method value. I am trying to learn how to use the new method value to set the value of the native select and resynchronize the widget.

The code only returns the value of the multiselect wodget NOT set the native select.
$('#function).multiselect().val();

The documentation only tells me

Value
Returns the value of the native select or sets it and re-synchronizes the widget.

Parameter:

newValue (optional) The new value to set.

What is the expected behavior?

I have initialize the multiselect widget. I click an option on the multiselect widget. I am trying to get the value I use on the widget to be set on the native select and resynced to the widget.

I am trying to use the value method to change the native select to whatever the multiselect widget is changed to. Do I need to apply the value method to a multiselect onchange event?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants