title: How to select item from unordered list jquery
body: <p>I have a function that fills my unordered list.</p>
  
  <pre><code>$("#DBSearch").append('&lt;ul id="List" data-role="listview"&gt;');
  
  
  for(var i = 0; i &lt; 10; i++)
  {           
      $("#DBSearch").append("&lt;li value=" + i + "&gt;&lt;a href="+ "#" + "&gt;" + obj.Search[i].Title + "&lt;/a&gt;&lt;/li&gt;" );      
  }
  </code></pre>
  
  <p>When I click on an item in the list I want my text box <code>strSearch</code> to fill with that item.</p>