get id by this jquery

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

Also in JavaScript: