jquery get id value
snippet in javascript

jquery get id value

user4067

var myId = $(this).attr('id');
alert( myId );

get id by this jquery

user4920

alert($(this).attr('id'))

jquery get id

user6653

var myId = $("#test").prop("id");

get the id of a div in jquery

user4849

	var rid = $(this).attr('id');	//for dynamically created elements

get element by id in Jquery

user1742

$("#YourElementId").val();