aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamically Enable Submit Button