jquery get attribute value by id code example
Example 1: jquery get id value
var myId = $(this).attr('id');
alert( myId );
Example 2: get attribute value jquery
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );
var myId = $(this).attr('id');
alert( myId );
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );