ajax watertextbox extender and javascript ?

G

Guest

Hi, i have a textbox on the page. When the user clicks on a username in the
list to the right i use this javascript to insert their username into the
textbox.

function

setTextBoxText(text)
{
var textbox = window.document.getElementById("<%=touser.ClientID%>");
textbox.value = '';
textbox.value = text;
textbox.focus();
}
This works perfectly.

Then i tried to add a TextboxWatermarkExtender and now it does not work
anymore, the initial text in the textbox (set by the watermark extender) gets
erased, but the username does not show up, it just turns blank and focus is
set on the textbox. Is there anyway to fix that?

Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top