How to disable/enable <s:submit> using JavaScript?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • javasachin
    New Member
    • Feb 2008
    • 2

    How to disable/enable <s:submit> using JavaScript?

    Hello,

    I want to enable Struts2 Submit button <s:submit> in the client side using JavaScript based on the user inputs in some other controls (textboxes). If user is not entering any values in the text boxes, I want to disable the <s:submit> and if user enters any text, then I want to enable this <s;submit. button. Can you kindly tell me how to do this???

    Thanks in advance.

    Regards,
    Sachin
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Hi Sachin, welcome to TSDN!

    Post your code, so we can suggest how you can do this.

    Comment

    Working...