我在课堂上有一个现场听众,它添加了一些内容。这以某种方式反复调用此侦听器。在这种情况下如何关闭传播?
SomeContent = "<p>Some content<p>";
moreContent = "<p>More content<p>";
$('.myClass').live('change', function (event){
var thisOption = $(this);
// event.preventDefault(); - does not work
// event.stopImmediatePropagation(); - does not work
var MyLocation = thisOption.closest('tr').next('tr');
// $(MyLocation).html("");
var thisTplReasons = $(moreContent);
thisTplReasons.appendTo(MyLocation).page();
return false;
});