Last post Feb 22, 2012 12:55 PM by A1ien51
Feb 21, 2012 02:57 AM|k80sg|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 03:33 AM|Shellymn|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 04:36 AM|k80sg|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 09:41 AM|Song-Tian - MSFT|LINK
Why you not use "Reset" directly?
<input type="reset" value="Reset"/>
Have a try.
Feb 22, 2012 12:55 PM|A1ien51|LINK
fails to clear that particular field.
What is the field? Input type??