title: Insert search text via jquery into the SharePoint 2013 "Find an Item" text box and trigger search
body: <p>I am trying to programmatically trigger a search using the Find an Item search box within SharePoint 2013.</p>
  
  <p>The plan is to insert text into the search box (an input control) using jquery and then trigger the search button click. </p>
  
  <p>The text gets inserted ok but the button click does nothing. It appears that the text has not been pushed through to the input fully as when i click on the search box the text disappears. Any help would be great.</p>
  
  <p>The same code works when targeting the standard sharepoint search box.  </p>
  
  <pre><code>var input = $("#inplaceSearchDiv_WPQ1_lsinput");
  $(input[0]).val("some text");
  var btn = $("#inplaceSearchDiv_WPQ1_lsimg")
  btn.click();
  </code></pre>