event propagation - e.stopImmediatePropagation is not a function -


this error 9lesson.info site editdeletepage template error edit , delete functions have. error name is

e.stopimmediatepropagation not function   $(document).ready(function() { $(".delete").live('click',function() { var id = $(this).attr('id'); var b=$(this).parent().parent(); var datastring = 'id='+ id; if(confirm("sure want delete update? there no undo!")) { $.ajax({ type: "post", url: "delete_ajax.php", data: datastring, cache: false, success: function(e) { b.hide(); e.stopimmediatepropagation(); }        }); return false; } }); 

how add add button please me?

possibly because using .live() bind events. jquery documentation:

since .live() method handles events once have propagated top of document, not possible stop propagation of live events.

depending on version of jquery using, changing live event handler on (jquery on) may fix problem.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -