anyone know what the equivalent in jquery would be?
onsubmit="location.href='/search/' + encodeURIComponent(this.s.value).replace(/%20/g, '+')+ '.html'; return false;"
$("form").submit(function() {
location.href='/search/' + encodeURIComponent(this.s.value).replace(/%20/g, '+')+ '.html';
return false;
});

Comment