Ajaxtoolkit TextboxWatermarkExtender: How to change the text from Javascript
- by George
I think thaAjaxControlToolkitTextBoxWrapperThis use to work, but I think that upgrading to te latest version of teh Toolkit (4 something) broke it:
var txtExpireYear = document.getElementById("ctl00_phPageContent_dtmPassportExpirationDate_txtYear");
txtExpireYear.AjaxControlToolkitTextBoxWrapper.set_Value(dtmDateOfExpire.getFullYear());
I now get the error:
Microsoft JScript runtime error: 'AjaxControlToolkitTextBoxWrapper' is null or not an object
Executing this:
txtExpireYear.innerText="value1"
txtExpireYear.value="value2"
results in the watermark text being changed, not the textbox's text.