Zdobądź identyfikator div w 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();