This is my HTML
<form id=procurar-novo>
<input type=text name=procurar placeholder=Pesquisar no Site value=>
<input id=procurar-submit type=button value=›>
</form>
And this is my jQuery
<script type=text/javascript>
$(document).ready(function(){
$('#procurar').submit(function(e) {
e.preventDefault();
//edited
window.open = ('http://www.psicotropicus.org/'+'/busca'+encodeURIComponent($('#procurar-submit').val()), '_blank');
return false;
});
});
</script>
The ideai is that by clicking on submit, the javascript/jquery will get the #procurar-submit value and add it on the URL and redirect the user.
The _blank still not works
Thanks in advance.