-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
How can I catch keydown event, like .on("keydown", function(){})? I can catch events like select2-open, select-close but I can't catch events like keydown.
The code below works only for close event but It does not work for keydown event.
"<select2 ng-model="fmData.data.value" s2-options="option.value as option.label for option in options"
options="optionsSelect"` id="{{item.id}}-{{fmData.name}}" style="width:100%"></select2>"
jQuery('#'+ id)
.on("select2-close", function(e) {
console.log("here");
})
.on("keydown", function (e) {
console.log("keydown");
});
Metadata
Metadata
Assignees
Labels
No labels