Robdel12 / DropKick

A JavaScript plugin for creating beautiful, accessible, and painless custom dropdowns.

Home Page:http://dropkickjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Select option programattically

KongoSalim opened this issue · comments

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.

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.