how to get the id of the div clicked
- $(document).ready(function(){
- $(".button").click(function () {
- $.ajax({
- var turl= "" + this.id + '.html';
- url: turl,
- success: function(data) {
- $('#content').html(data);
- alert('Load was performed.');
- }
- });
- });
- });
This doesn't work. How to get the id of the .button where .button is <div>.