I would like to dynamically add a button control to a table using jQuery and attach a click event handler. I tried the following, without success:
$(\"#myBut
You can either use onclick inside the button to ensure the event is preserved, or else attach the button click handler by finding the button after it is inserted. The test.html() call will not serialize the event.
test.html()