jquery - Stop ENTER from submitting the containing form in Autocomplete plugin by Jorn Zaefferer -


i use jorn zaefferer's autocomplete jquery plugin works great except 1 thing - if user using keyboard scroll through autocomplete options list , presses enter on 1 wants, submits containing form.

im sure cleverly placed return false; sort out - have ideas?

$('#myform').submit(function(e) {     // validate form fields here }); 

the above @ least ensure no matter how form submit triggered, can capture , suppress if necessary.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -