469,085 Members | 1,010 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,085 developers. It's quick & easy.

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


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.

Feb 19 '08 #1
1 3566
16,027 Expert Mod 8TB
Hi Sachin, welcome to TSDN!

Post your code, so we can suggest how you can do this.
Feb 20 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Jeff | last post: by
1 post views Thread by smartic | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.