How to add multiple event delegation in jquery with focusout
I am trying to execute two events with one "on" function. I have this code:
<input type="text" id="lesson" />
$('#lesson').on("focusout keyup",function(e){
var $change_education = $(this);
if(e.which === 188){
var current_value = $(this).val();
add_edit_tags(current_value, $change_education);
}
});
The keyup event is working but the focusout is not. I can't see anything
from the web how to solve this.
Thanks
No comments:
Post a Comment