Renegade85 Posted March 5, 2010 Share Posted March 5, 2010 Hi, just having a problem with a form i'm currently working on. I have the submit button disabled unless all input is valid. The problem is that when all the input is valid, the user still has to click out of the form field to enable the button which irritates the majority of users. I'm currently using the onChange event for checking individual fields are valid and also checking the rest by calling the appropriate validation methods from within all the other validation methods. Is there a javascript event i'm missing here that would be a better idea or what would be the best way to code the form ? Would it be better just to leave the submit button enabled and check all fields there in an if else statement? Quote Link to comment Share on other sites More sharing options...
TigerLV Posted March 5, 2010 Share Posted March 5, 2010 You could try to create new button dynamically which is not disabled in place of disabled button https://developer.mozilla.org/En/DOM/Document.createElement there could be useful JQuery also ... Quote Link to comment Share on other sites More sharing options...
Renegade85 Posted March 5, 2010 Author Share Posted March 5, 2010 I was thinking on doing that yeah but it would result in the same problem where the user has to click away from the field for it to appear Thinking I may just have to leave the button enabled and have an onClick event :/ It'll be the only button on the site that does that though so it'll annoy me lol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.