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

defaultSelectedIndex option is not working #94

Open
Dr3am3rz opened this issue Aug 31, 2020 · 0 comments
Open

defaultSelectedIndex option is not working #94

Dr3am3rz opened this issue Aug 31, 2020 · 0 comments

Comments

@Dr3am3rz
Copy link

I am trying to retrieve my game_id from my user database and trying to set the selectedindex so when user trying to edit their profile, it will show the game that was set previously.

I have 3 games in my dropdown.

Right now I am trying to initialise the plugin like this by setting a number to it before replacing it with my database data :

$('#myDropdown').ddslick({

            defaultSelectedIndex:2

        });

But apparently the plugin does not work. It keeps showing the 1st game in the list no matter what number I set. Are there anyone here who can help me out with this please? Thanks in advance!

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

1 participant