there is

<form id="search_form"> <input type="text" id="search_form_input" placeholder="будем искать?" name="name" size="31" /> <input type="submit" id="search_button" onclick="return false;" value="" /> <a id="search_dropdown"></a> </form> 

How to make it go after clicking on / search / here what is entered / on jQuery?

  • one
    Thank you for the glasses, but they would be more useful to you. For the future, if the answer is right for you, it’s enough to add and take it. - KiTE

1 answer 1

Something like:

 $('#search_form').submit(function(){ location.pathname = '/search/' + encodeURI($('#search_form_input').val()); return false; }); 

UPD: Only, remove onclick="return false;" . The onsubmit handler onsubmit hung on the entire form, in this case the handler of a particular button is not needed.