I think that thaAjaxControlToolkitTextBoxWrapper is used to work, but I think that updating to the latest version of Toolkit (4) broke it:
var txtExpireYear = document.getElementById("ctl00_phPageContent_dtmPassportExpirationDate_txtYear");
txtExpireYear.AjaxControlToolkitTextBoxWrapper.set_Value(dtmDateOfExpire.getFullYear());
Now I get the error:
Microsoft JScript runtime error: 'AjaxControlToolkitTextBoxWrapper' is null or not an object
Doing this:
txtExpireYear.innerText = "value1" txtExpireYear.value = "value2"
changes the text of the watermark, not the text of the text field.
Chadd source
share