how to add an id to an element in jquery code example
Example 1: add id jquery
$('element').attr('id', 'value');
Example 2: how to add id in jquery
<ul>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
</ul>
<p>a paragraph</p>