Unable to capture the id of div clicked
- by user3674364
This is my jsfiddle
http://jsfiddle.net/6TUtw/4/
How can i register for the event div click , so that i can get the name
i have tried with different things , but none of them worked .
$('#tabs div').click(function() {
var elem = $(this);
alert(elem);
});
$('#tabs').on('click', 'div.click', function () {
var elem = $(this);
alert(elem);
});
$("#tabs").click(function(){
var elem = $(this);
alert(elem);
});