Hello,
I am trying to select a radio button from within JavaScript. The set of radio buttons have all been given the same name (QEDataEntry). I have tried the obvious, the click method, to no avail. I have tried the following:
document.form1.QEDataEntry[4].click;
document.form1.elements[4].click;
My browser is IE 5.5.
The reason I am trying to do this is that the page is normally reset when a new radio button is selected - however, if there was an error in the data entered within a set of textboxes (my JavaScript function tests for this), then the page is not reset, an alert is given, and the orignial radio button should be selected again from within JavaScript.
Any help would be appreciated!
Alan Ashcroft
I am trying to select a radio button from within JavaScript. The set of radio buttons have all been given the same name (QEDataEntry). I have tried the obvious, the click method, to no avail. I have tried the following:
document.form1.QEDataEntry[4].click;
document.form1.elements[4].click;
My browser is IE 5.5.
The reason I am trying to do this is that the page is normally reset when a new radio button is selected - however, if there was an error in the data entered within a set of textboxes (my JavaScript function tests for this), then the page is not reset, an alert is given, and the orignial radio button should be selected again from within JavaScript.
Any help would be appreciated!
Alan Ashcroft