title: onchange insert value into hidden input jquery
body: <p>When i select some data from my option i need the value to be showed when "onchange" the select... can someone help me ? </p>
  
  <pre><code>&lt;select name="search_school" id="search_school" onchange="$('#search_school').val() = $('#school_name').val()"&gt;
  </code></pre>
  
  <p>I want the selected option value to be showed in the hidden input</p>
  
  <pre><code>&lt;input type="hidden" name="school_name" id="school_name" value="" /&gt;
  </code></pre>