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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disbale/Enable text box on radio button selection

Status
Not open for further replies.

srangu

Programmer
Jun 24, 2005
2
US
Hi,
I was trying to enable/disable text boxes depending on the radio button selection in radio group. I was doing the following and this doesn't work:

<html:text property="beginDate" size="12"
maxlength="10" />
<html:radio property="dateOrsc" value="userId" javascript:enableDate();"/>By User ID</td>

function enableDate(){
document.eSupportTrackingReportForm.beginDate.disabled="false";
}

I tried this too:
document.eSupportTrackingReportForm.beginDate.enabled="true";
and

document.eSupportTrackingReportForm.endDate.enabled

Please help me out!!
Thanks
Subha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top