File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Dynamically Enable Submit Button

Mike Aron

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

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:
subject: Dynamically Enable Submit Button
jQuery in Action, 3rd edition