my previous question:
sweetamylase posted her fiddle http://jsfiddle.net/amyamy86/jSyfy/ , which is great and very close to what I am trying to achieve, but I am having trouble getting it so that pressing enter will trigger the same as clicking the button.
I tried this and other variations
$("input").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
FoodDispaly();
}
});
but haven't gotten it to work