$(document).on('keypress','#appendedInputButtons',function(e){ alert(e.which);});
<select>
<option value="1">1</option>
<option value="2">2</option>
</select>
<script>
$('select').live('keypress',function(e){
var p = e.which;
if(p==13){
alert('enter was pressed');
}
});
</script>
0 comments:
Post a Comment