problem with append();
problem with append();
Hi,
I'm having probs with append(). When the page loads I add a function to certain images:
-
$(table#viewer tr td.incl_vat div.delete img).click(function(){ /*stuff*/ });
but after appending a now row, with a similar image, the onclick function on that row doesnt work, seems like it needs to be reinitialized or something.
I tried making a function of:
-
$(table#viewer tr td.incl_vat div.delete img).click(function(){ /*stuff*/ });
But when I call that function after appending, the new image is not clickable and the images that were already there, get an extra function on click.
How to fix?
Thanks!