I have a `textbox` whose input is being handled by jQuery.
$('input.Search').bind("keyup", updateSearchTextbox);
When I press `Enter` in the textbox, I get a postback, which messes everything up. How can I trap that Enter and ignore it?
(Just to preempt one possible suggestion: The textbox has to be an `` - I can't replace it with an ``.)
以上就是Can I cancel postback when user presses return in a textbox?的详细内容,更多请关注web前端其它相关文章!