<html><input id="test" type="text" /></html>
<script>
$(function(){
$("#test").keypress(function(event)
{
if ((event.charCode == 32) || (event.charCode == 64))
alert("Working with space & @ but not with Enter");
});
});
</script>
Here is my code but it's not working for ascii of 'Enter' which is '13'