Dapatkan ID di JQuery
$(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() {
console.log($('#test').attr('id'));
});