You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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");
});
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: