I'm doing a dashboard with users and need an edit button. When the edit button runs it just makes code appear and disappear, but wanted to know if it's possible to execute jQuery code and select the button id.
<aid="1" class="edit">E</a>
<a id="2" class="edit">E</a>
<a id="3" class="edit">E</a>
$('.edit').on('click',function(){
var id = $('.edit').id;
alert(id);
});