Confirm box and change form action on yes

I have problem with this script


$("#izmene_lica").click(function () {
    var ask = window.confirm("Da li ste sigurni da želite da sačuvate ove podatke?");
    if (ask) {
         $('#odabir').attr('action', 'proces_hr.php'); //#odabir is id of my form
    } else {
        return false;
    }
});

It sometimes work, sometimes not. In ie almost never work. What i need is popup window that will ask for confirmation and if it is confirmed form action should change. I tried many ways, in ie i cant make it work. Can someone help me with this?

Works fine for me, although I cannot test in IE as I am on Linux

fiddle