Right now I have this flow in jquery:
$('input#search').click(function(){
$('textarea#people').fadeIn();
$('input#searchpeople').fadeIn();
$('input#add').hide();
$('input#search').hide();
});
$("#searchpeople").click(function(){
var people=$("textarea#people").val();
$.post("searchpeople.php",{people:people},function(result){
$("div.callback").html(result);
});
});
My simple question is, instead of having the user having to click the search button, the button would automatically click when the user presses the enter key.
You have to do the following…
Demo can be found here