This is my input box.
<input type="text" class="form-control" id="contestCode" name="contestCode" required >
My jQuery Snippet which checks for keyup
event and paste
event
$('#contestCode').on({
keyup : function(){
checkContestCodeIfExists($(this));
},
paste : function(){
checkContestCodeIfExists($(this));
}
});
But when the user clicks on the autoSuggest provided by the browser (Code exists for the auto suggest provided by the browser because I already gave that code as input once) ,I am not able to listen to that event. How can I do that in jQuery?