Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 22, 2012 11:55 AM by A1ien51
Feb 21, 2012 01:57 AM|LINK
Hi, I have a client side button to clear my form but there's one particular textfield which does a postback for some operation as seen below (funtion Check) and somehow my this.form.reset() fails to clear that particular field. Please kindly advice. Thanks.
Feb 21, 2012 02:33 AM|LINK
You need to explicity clear the value of that particular text box ('ctl00$cphBody$uitxtMemTypeCode').
eg : document.getElementById('ctl00$cphBody$uitxtMemTypeCode').value ="";
Feb 21, 2012 03:36 AM|LINK
Sorry but that doesn't work. I realised that after the postback trigger by '__doPostBack('ctl00$cphBody$uitxtMemTypeCode', 'OnBlur');', I am not able to clear the field without using code behind way.
Feb 22, 2012 08:41 AM|LINK
Why you not use "Reset" directly?
<input type="reset" value="Reset"/>
Have a try.
Feb 22, 2012 11:55 AM|LINK
fails to clear that particular field.
What is the field? Input type??