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


Win a copy of Java 8 in Action this week in the Java 8 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.
 
jQuery in Action, 2nd edition
 
subject: Dynamically Enable Submit Button
 
Similar Threads
initialize html:radio
how to make html:radio default selected
I want to submit the button but not refresh the page
How to disable html:checkbox based on html:radio selection
Arraylist in JSP with Html radio