
Untitled
By: a guest on
Apr 24th, 2012 | syntax:
None | size: 0.47 KB | hits: 9 | expires: Never
textbox browser autocompletion options do not fire keypress/keyup
<form name = "myform" method = "post">
<input type = "text" name = "mytext" id = "text_id"/>
<input type = "submit"/>
</form>
<script>
$(document).ready(function() {
$('#text_id').bind('keyup', function() {
console.log('pressed!');
});
});
</script>
$('#text_id').on('keyup change', function () {
// Code that works well for both cases, since they are
// a bit different.
})