title: How to get id of a tag inside li tag?
body: <p>How can I get id of anchor tag specified in li tag?</p>
  
  <p>My code is:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;li name="cmspage"&gt;&lt;a href="#" id ="&lt;?php echo $data -&gt;page_id; ?&gt;"&gt;&lt;?php echo $data -&gt;page_title; ?&gt;&lt;/a&gt;&lt;/li&gt;</code></pre>
  </div>
  </div>
  </p>