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

How to read the text of selected item? #30

Closed
mistral61 opened this issue Aug 24, 2018 · 1 comment
Closed

How to read the text of selected item? #30

mistral61 opened this issue Aug 24, 2018 · 1 comment

Comments

@mistral61
Copy link

In Javascript i can read the value as a normal select , example $("#myselect").val()
Even if choose a value, $("#myselect :selected").text() gives an empty string.

@ukalpa
Copy link
Owner

ukalpa commented Aug 26, 2018

Hi @mistral61 ,

You can use $('#test').inputpicker('element') to get the current option array. And visit here http://inputpicker.com/www/doc.php#options-data for more reference.

@ukalpa ukalpa closed this as completed Apr 19, 2019
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

2 participants