title: Put onClick event in <li> to call AJAX
body: <p>When I put <code>onClick</code> event in <code>button</code> element inside <code>li</code> element like below to make AJAX:</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li&gt;&lt;button value="orange" onClick="qCat(value)"&gt;Orange&lt;/button&gt;&lt;/li&gt; 
  &lt;li&gt;&lt;button value="apple" onClick="qCat(value)"&gt;Apple&lt;/button&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>It works nicely.</p>
  
  <p>But if I take away <code>button</code> to apply event directly to <code>li</code> element like below make AJAX:</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li value="orange" onClick="qCat(value)"&gt;Orange&lt;/li&gt; 
  &lt;li value="apple" onClick="qCat(value)"&gt;Apple&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>It won't work. Anything wrong with my code? Pls advice. Thanks.</p>