Hi everyone,
I have the following code in a .js file which displays a popup window when the If condition is false:
if ($(“#agree”).is(“:checked”)) {
$(this).submit();
} else {
alert(“You must agree with the terms and conditions of sales to check out.”);
return false;
}
I have the following questions:
-
At the moment the popup shows near the top, as far as I know it’s not possible to center it when using alert, what would be the easiest alternative?
-
How can I retrieve the page language and use it in an IF condition to display the message either in English or French?
Thank you very much in advance!