Setting the innerHTML on a <span>

K

Kerri

Sorry,

That was a typo. It should read.

I have a RequiredFieldValidator

This gets rendered out as a <span>

I want to set the innerHTML.

So I do this by using below javascript.

var eMail = document.getElementById
("Requiredfieldvalidator1");
eMail.innerHTML="";


The same code works for other spans but not for this one.


Any ideas?

Kerri.
 
B

Bob Barrows

Kerri said:
Sorry,

That was a typo. It should read.

I have a RequiredFieldValidator
What's a "RequiredFieldValidator"? Is this a .NET thing? If so, this is a
classic asp group. You should post your question to one of the dotnet
groups. I suggest microsoft.public.dotnet.framework.aspnet.

HTH,
Bob Barrows
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top