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

Select option programattically #312

Closed
KongoSalim opened this issue Oct 12, 2015 · 1 comment
Closed

Select option programattically #312

KongoSalim opened this issue Oct 12, 2015 · 1 comment

Comments

@KongoSalim
Copy link

Select method to get option selected can be done by either passing index or by passing value is not working when values have integer numbers. it is giving priority to index and considered value as index hence it is selecting very different option as per index.

@wwilsman
Copy link
Collaborator

The value attribute type is actually a string no matter what you intend it to be. Try passing "4" instead of 4 to the method and it should work as you'd expect it to.

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