Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

radio button reset??

Status
Not open for further replies.

timmbo

Programmer
Feb 22, 2001
167
US
Have three radio buttons. Based on selection by user, I want to set focus back to Date[0] (accomplished) and have Date[0] clicked (black dot in radio checked).
Any suggestions appreciated.

function myClick(frmName, curItem) {
if('document.' + frmName + '.' + curItem) {
if (eval('document.' + frmName + '.dteBeg.value') != 0) {
alert('Date range is not available when this option is selected.');
eval('document.' + frmName + '.dteBeg.value = ""');
eval('document.' + frmName + '.dteEnd.value = ""');
eval('document.' + frmName + '.Date[0].focus()');
}
}
}
 
Thanks for the help jaredn. That worked great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top