data id attribute code example
Example 1: data id tag
var dataId = $(this).attr("data-id");
Example 2: data id
<li data-id="1234" data-email="[email protected]" data-age="21">Calvin</li>
var dataId = $(this).attr("data-id");
<li data-id="1234" data-email="[email protected]" data-age="21">Calvin</li>