Enter Key Function Javascript
$('#id_of_input').keypress(function(e){
if(e.which == 13) {
// Task to do
}
});