on click of element code example Example: document on click $(document).on("click","#test-element",function() { alert("click"); });