I need to get the value the user input in the search box to be used to filter in my xml document. How to do it. Thank you..

I need to get the value the user input in the search box to be used to filter in my xml document. How to do it. Thank you..

<form>
       <input type="search" value="" placeholder="City, State or ZIP" id="search">
  </form>