JQuery Get Element ID
$(this).attr('id')
Thoughtful Tortoise
$(this).attr('id')
var myId = $("#test").prop("id");
alert($(this).attr('id'))
$(document).ready(function() {
console.log($('#test').attr('id'));
});