Craig Hopson Posted July 19, 2012 Share Posted July 19, 2012 hi guys using thishttp://www.simonerodriguez.com/ajax-form-submit-example/ here is my form <form name="MyForm" action="feedxx.php" method="post" onsubmit="xmlhttpPost('feedxx.php', 'MyForm', 'MyResult', 'Wait'); return false;"> <input name="sample_text" type="text" size="30px" placeholder="Type a Message" /> <input name="send_button" type="submit" value="Send" /></form> after i submit i need to clear the form i tried this <form name="MyForm" action="feedxx.php" method="post" onsubmit="xmlhttpPost('feedxx.php', 'MyForm', 'MyResult', 'Wait');this.form.reset(); return false;"> but didnt work? how do i do it???? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now