title: Match the value of inputs on change using jquery
body: <p>I have two inputs which I want to have the same input values when one is typed in. It kind of works but not all the time. 
  I will leave the code here:</p>
  
  <pre><code>$('#google-querynav').keypress(function() {
      var text = $(this).val();
      $('#google-querystat').attr('value', text);
  })
  $('#google-querystat').keypress(function() {
      var text = $(this).val();
      $('#google-querynav').attr('value', text);
  })
  </code></pre>
  
  <p>Thanks for the help</p>