wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
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.
Consider Paul's rocket mass heater.
subject: Dynamically Enable Submit Button
Similar Threads
How to disable html:checkbox based on html:radio selection
how to make html:radio default selected
Arraylist in JSP with Html radio
I want to submit the button but not refresh the page
initialize html:radio