Skip to content

add onselect event#850

Closed
asgard311 wants to merge 2 commits intosnapappointments:masterfrom
asgard311:master
Closed

add onselect event#850
asgard311 wants to merge 2 commits intosnapappointments:masterfrom
asgard311:master

Conversation

@asgard311
Copy link
Copy Markdown

since I did not see a way to easily add an 'onChange' type event to the dropdown after selectpicker finished, I added a new option that is called when an option is chosen (li) on the styled dropdown.

ex: $('.selectpicker').selectpicker(
{select: function(){
console.log("option was picked")
}
});

you should be able to get the picker itself from the event and get the current val &c to use in the event handler.

@asgard311 asgard311 closed this Jan 5, 2015
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

Successfully merging this pull request may close these issues.

1 participant