I am using alertify for alert and confirm and after the pop up ,correct option is not chosen in select box when set using ObjThis.selectedIndex = 1 rather focus is set on select box's selected option that invoked the script.
This occurs on ipad /ios 7.1.1. I am using alertify because traditional alert and confirm freezes the browser.
eg
if (a ==5)
{
alertify.alert ("a cannot be 5");
ObjThis.selectedIndex = 1;
}
else{
alertify.alert ("Correct value selected");
ObjThis.selectedIndex = 0;
}
Hi ,
I am using alertify for alert and confirm and after the pop up ,correct option is not chosen in select box when set using ObjThis.selectedIndex = 1 rather focus is set on select box's selected option that invoked the script.
This occurs on ipad /ios 7.1.1. I am using alertify because traditional alert and confirm freezes the browser.
eg
if (a ==5) { alertify.alert ("a cannot be 5"); ObjThis.selectedIndex = 1; } else{ alertify.alert ("Correct value selected"); ObjThis.selectedIndex = 0; }