title: onclick event pass <li> id or value
body: <p>I want to pass <code>&lt;li&gt; id or value</code> in <code>onclick</code> event. here is my exiting code.</p>
  
  <pre><code>&lt;li onclick="getPaging(this.value)" id="1" value="1"&gt;1&lt;/li&gt;
  &lt;li onclick="getPaging(this.value)" id="2" value="2"&gt;2&lt;/li&gt;
  </code></pre>
  
  <p>here is the javascript code</p>
  
  <pre><code>function getPaging(str)
  {
  $("#loading-content").load("dataSearch.php?"+str, hideLoader);
  }
  </code></pre>