Answers for "e.stoppropagation() doesn't work"

1

event stoppropagation not working

// works like charm
function DownloadAsset(AssetId, e) {

    if (!e) var e = window.event
    e.cancelBubble = true;
    if (e.stopPropagation) e.stopPropagation();

    // your ajax call
    $.ajax({....})
}
Posted by: Guest on September-23-2021

Browse Popular Code Answers by Language