This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes Dynamically Enable Submit Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamically Enable Submit Button" Watch "Dynamically Enable Submit Button" New topic
Author

Dynamically Enable Submit Button

Mike Aron
Greenhorn

Joined: May 29, 2003
Posts: 3
I have a submit button that I am setting to disabled when I enter the JSP.
When a radio button is selected I want to enable it. I guess I would have to use an onclick event in the radio button and javascript to do it but what would the script be? Am I missing an attribute that can identfy my submit button?
Submit Button:
<html:submit disabled="true" value="Change"></html:submit>
Radio Button:
<html:radio property="selcetedRow" value="<%=theIndex.toString()%>"></html:radio>
Mike Aron
Greenhorn

Joined: May 29, 2003
Posts: 3
nevermind, I used the property attribute and set the Boolean value in the Javasacript.
 
Consider Paul's rocket mass heater.
 
subject: Dynamically Enable Submit Button