Cancel button click when executing script - dont return(false)

Cancel button click when executing script - don't return(false)

Use this:

l.click(function () {
    if (typeof this.preventDefault !== 'undefined') { this.preventDefault(); }
    return false;
});

Posted by Tom at 00:00

Post a comment

Authors