fabien-d / alertify.js

JavaScript Alert/Notification System
http://fabien-d.github.com/alertify.js/
4.26k stars 726 forks source link

onchange select box , alertify.alert doesnt select correct option #228

Open jigs2410 opened 10 years ago

jigs2410 commented 10 years ago

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; }