Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Setting the innerHTML on a <span>

Reply
Thread Tools

Setting the innerHTML on a <span>

 
 
Kerri
Guest
Posts: n/a
 
      09-30-2003
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.
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      09-30-2003
Kerri wrote:
> 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


 
Reply With Quote
 
 
 
 
Bullschmidt
Guest
Posts: n/a
 
      09-30-2003
Perhaps try a JavaScript and/or DHTML board like
http://www.codingforums.com/forumdis...p?s=&forumid=2

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xhtml, innerHtml, appendChild, and innerHTML. what is the exact proper way to do this with DOM sonic Javascript 5 07-11-2006 08:17 AM
setting innerHtml of div tag, changes aren't sticking Mad Scientist Jr Javascript 3 03-10-2006 04:12 AM
BUG: Setting Server Control's InnerHtml forces Constructore to be called. =?Utf-8?B?am9obmRvZUBkcml2ZXIubmV0?= ASP .Net 10 02-24-2004 07:01 PM
Setting the innerText / innerHTML on a <span> Kerri ASP General 4 09-28-2003 03:04 PM
Problem: Setting MSIE iframe innerHTML change relative href/src to absolute href/src Soren Vejrum Javascript 4 07-05-2003 01:47 PM



Advertisments