V2oD2o,
<script type="text/javascript" src='jquery.js'></script>
<input type=text id=value>
<script>
$('input').on('keydown', function(e) { if (e.keyCode == 13) { alert('send data to server'); } });
</script>
<script type="text/javascript" src='jquery.js'></script>
<script>
$('input').live('keydown', function(e) { if (e.keyCode == 13) { alert('send data to server'); } });
</script>
<input type=text id=value>