Last post Apr 07, 2005 04:43 PM by pgrealy
Mar 11, 2005 12:05 PM|dinuj|LINK
Mar 11, 2005 08:50 PM|pgrealy|LINK
Mar 12, 2005 06:20 AM|dinuj|LINK
var selOption = -1;
for (i=0; i < prefx.rblSex.length; i++)
selOption = i;
if (selOption == -1)
alert('Please select the marital status of the patient');
Apr 07, 2005 04:43 PM|pgrealy|LINK
Sorry, I've been away from the forum for some time.
I'm not sure why your function fails. The xxx.focus() works ok when I try it, although I use the getElementByID construct,
That said, I still prefer setting focus to a particular button, defaulting to first button in the list. Setting focus to the list is undetectable until the user presses the tab button to advance to the first button. - Pat G.