JQuery Get Element ID
$(this).attr('id')
Thoughtful Tortoise
$(this).attr('id')
var myId = $(this).attr('id');
alert( myId );
var rid = $(this).attr('id'); //for dynamically created elements
var myId = $("#test").prop("id");
alert($(this).attr('id'))
$("#YourElementId").val();