get id in jquery
$(this).attr('id')
jquery get id value
var myId = $(this).attr('id'); alert( myId );
Source: stackoverflow.com
get the id of a div in jquery
var rid = $(this).attr('id'); //for dynamically created elements
get id by this jquery
alert($(this).attr('id'))
jquery get id
var myId = $("#test").prop("id");
Source: stackoverflow.com
how can ic get the id of div jq
$(document).ready(function() { console.log($('#test').attr('id')); });
Source: stackoverflow.com