I fiqured this out: > $('<input type="checkbox" id="cb"/>') > .appendTo('#myFormId', 10) > .click(function() { > // do something > }); >
The .appendTo overload (Erik's plugin) which is designed to clone the html does not return an array, hence chaining the .click handler does not apply. I had to separate it like so: $('<input type="checkbox" id="cb"/>').appendTo('#myFormId',20); $("[EMAIL PROTECTED]").click(function() {...} ); Thanks Erik for the plugin! <g> -- HLS