In my ASP.Net app with framwork 3.5, I am looping Page_Validators and apply css style to required fields but I does not work in ipad iOS 8 Safari 8
for (var i = 0; i < Page_Validators.length; i++) {
var val = Page_Validators[i];
var ctrl = document.getElementById(val.controltovalidate);
if (ctrl != null && ctrl.style != null) {
if (!CheckValidatorsForControl(ctrl))
ctrl.className = "ValidationOn";
else
ctrl.className = "";
}
}
Even if I try a basic javascript alert like below: alert(Page_Validators.length);
Nothing happen in in ipad iOS 8 Safari 8. For all other browsers, everything is perfect.
Thanks in advance for any help.