title: Getting a value of a clicked link
body: <p>I have a bunch of dummy links in a jQuery Mobile accordian. By dummy links I mean the that href is just "#". The list is created dynamically by another function and a value is stored in the element by using the value attribute. A loop writes the list like this </p>
  
  <pre><code>'&lt;li value="' + result.ID + '"&gt;&lt;a href="#"&gt;' + result.Name + '&lt;/a&gt;&lt;/li&gt;'    
  </code></pre>
  
  <p>I am having trouble grabbing that value when I click on the link. I am currently using this event handler </p>
  
  <pre><code>$(document).on('click', '#openCallsList li a', function () {
  
  });
  </code></pre>
  
  <p>When a link is clicked I want to have the value associated with it so I can grab some data from a database ( I know how to do this) and then create a dialog window (which I also know how to do). I am just lost on how to get the value I stored with the link. </p>