Ajaxtoolkit TextboxWatermarkExtender: How to change the text from Javascript
Posted
by George
on Stack Overflow
See other posts from Stack Overflow
or by George
Published on 2010-04-23T20:44:37Z
Indexed on
2010/04/24
5:23 UTC
Read the original article
Hit count: 563
ajaxtoolkit
|ASP.NET
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.
© Stack Overflow or respective owner