Obtenha o ID de uma div em jQuery
var rid = $(this).attr('id'); //for dynamically created elements
Invincible VictorBorah
var rid = $(this).attr('id'); //for dynamically created elements
alert($(this).attr('id'))
$("#YourElementId").val();