Here's a jsFiddle test --> http://jsfiddle.net/rTXkM/
I have a button that adds a table row to my table:
var x = "<tr><td><button class='del'> - </button></td></tr>";
$('#mytable').append(x);
I also have a jQuery function that operates according to class:
$('.del').click(function() {
......................
......................
......................
});
However, the 'del' class click function does not work on DOM created Elements... Can someone help?
jsFiddle --> http://jsfiddle.net/rTXkM/