I\'ve come to maintain a piece of javascript that downloads some JSON data from the server, builds a new table row (like $(\'
) and inserts i
Two things come to my mind:
Here there is a fiddle that works with code very similar to yours.
var a = $('ASD');
a.click(function() {
alert('a');
});
a.appendTo($("body"));