Jquery tabs - Showing a confirmation before activate

淺唱寂寞╮ 提交于 2019-12-01 22:49:05

With a standard confirm instead of a fancy is working can it be a fast solution? http://jsfiddle.net/nuywj/

I ended up going w/ a standard javascript confirm box instead of FancyBox. That solved my problem, because Confirm will block code from being executed:

function CheckSomething() {
    if (myCondition) {
        return confirm("Are you sure you want to change tabs without saving?");
    }
    else {
        return true;
    } 
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!