First of all, I can't use the action=''
attribute. That's why I use on submit
.
Here my code:
<form class="search" role="search" method="get" onsubmit="window.location.href='home.php?m=search&q='; return false;">
<input type="text" placeholder="Rechercher..." name="s">
</form>
How can I get my input content after my onsubmit
url ?
Can jQuery could get this content and put it in this address ? How do do this ?
Thanks.