Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var del_id = "del"+countPage+"-"+questionCount;
- html+='<tr><td><input type="button" value="delete" id="'+del_id+'" /><td><input type="button" value="Copy" id="copy_id"/></tr>';
- $("#"+del_id).click(function(){
- alert("jkhkjh");
- });
- html+='<tr><td id="'+del_id+'"><input type="button" value="delete" id="'+del_id+'" /><td><input type="button" value="Copy" id="copy_id"/></tr>';
- $(document).on("click", "#"+del_id, function(){
- alert("jkhkjh");
- });
- $(document).on("click", "#"+del_id, function(){
- $(document).on("click", "[type='button'][id^='del']", function(){
- $(document).on("click", ".buttonClass", function(){
- $(document).on('click', 'buttonId/Class', function(){
- // Do something.
- })
- $(document).on("click", "#"+del_id, function(){
- });
- $('body').on("#"+del_id, 'click', function(){
- //Do something.
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement