• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamically Enable Submit Button

 
Mike Aron
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nevermind, I used the property attribute and set the Boolean value in the Javasacript.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic