Hello,
i've created a form with an input of type "search",
i need to add some other datas in this form.
- <form action="list">
<input type="search" id="search" name="search" />
<input type="hidden" name="a" value="${account}" />
</form>
But the form does not submit if there are some other fields...
Then, I tried with an unique search input and tried to catch form submit in order to make the request by myself (and adding additional datas manually) like this :
- <form action="list">
<input type="search" id="search" name="search" />
</form> - $( "form" ).live( "submit", function(e){
e.preventDefault(); - ....
});
But the line "event.preventDefault()" does not work, form is submitted even if I add onsubmit="return false" in <form>.
How can i put additional datas in a form with a search input ?
Thx