I'm using the nifty 'combobox' variant of jQuery UI Autocomplete - see here: http://jqueryui.com/demos/autocomplete/#combobox
I have it within a Form element because its part of a form.
The Autocomplete Combobox has a <button>
that is used to show the whole drop down list. However when the user presses it, the form submits. This appears to be because the <button>
has a type="submit"
attribute. The whole element is created by the button()
call within the .combobox
fn, see source code.
How do I stop it submitting?
(NB: This guy had the same problem but he fixed it by removing the form
- I can't do that)