Hi,
I’m developing an AJAX application and a main part is the ability for the content of a TextArea updating on the change of a drop down menu.
If the text were to be placed in a div container it would be:
[CODE]
if(ajaxRequest.readyState == 4)
{
document.getElementById(display).innerHTML=ajaxRequest.responseText;
}
To have the response text placed in the TextArea I thought I could simply update the value property:
[CODE]
if(ajaxRequest.readyState == 4)
{
document.getElementById(display).value=ajaxRequest.responseText;
}
But the TextArea doesn’t seem to support the value property.
So, can anybody help me update the content of a TextArea with the responseText of the AJAX call.
Thanks,
Nick