I have a function:
var confirmNA = confirm("You are about to delete last year's answer(s). Are you sure you want to delete this information?");
It DOES NOT work as it's supposed to.
It SHOULD check if there's element ("form[name*='Form1']") EXISTS on the Page.
If it does, AND user clicks the link $("a.NALink", this).click ONLY THEN
the Confirm-Cancel Pop-up should appear.
NOW it works always and not checking if element ("form[name*='Form1']") EXISTS.
Should I add "If" statement to the function and if yes, what will be the syntax for that?