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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -