I have a page that is checking the state of controls in a jQuery load function.
This was working perfectly but have now noticed that it doesn’t in IE.
$g(window).load(function() {
var one = $find("<%= rb1.ClientID%>");
var two = $find("<%= rb2.ClientID%>");
alert(1);
if (one.get_checked()) {
alert(2);
$g('[id$="div1"]').hide();
$g('[id$="div2"]').show();
}
else if (two.get_checked()) {
alert(3);
$g('[id$="div1"]').hide();
$g('[id$="div2"]').show();
}
});
In IE the contol state checks are never hit (i.e. I never see an alert for 2 or 3 but do see the alert for 1)
In other browsers I don’t have any problems and all works as expected. Is there a better way for me to implement the above.
Thanks.
It seems that this is a problem with the Telerik controls. In order to get around the issue I am calling a function on the radio button controls OnClientLoad command rather than the window.onload