Dynamic event handler attribute by Bacher January 14, 2014 HTML <button>A</button> JavaScript $('button').attr('onclick', 'alert(3);');