JQuery Get Id 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'))
$(document).ready(function(){
$("button").click(function(){
var myid = $( "#old" ).html()
$("#some").html(myid);
});
});