Halisco Posted February 13, 2009 Share Posted February 13, 2009 Im trying to figure out how i can submit a form with the onchage in a text input, just as if i click the submit button. Can someone please help me out. Quote Link to comment Share on other sites More sharing options...
sdi126 Posted February 13, 2009 Share Posted February 13, 2009 do you really want to submit the form after the user makes a change? --->use the onchange event <input type="text" onchange='document.forms[0].submit();' /> or do you want to submit the form when they leave the textbox? ---> use the onblur event <input type="text" onblur='document.forms[0].submit();' /> Quote Link to comment Share on other sites More sharing options...
Halisco Posted February 14, 2009 Author Share Posted February 14, 2009 do you really want to submit the form after the user makes a change? --->use the onchange event <input type="text" onchange='document.forms[0].submit();' /> This is what i want to do but Ive tried this with no success? 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.