Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

Setting the innerHTML on a <span>

Posts: n/a

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

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

Any ideas?

Reply With Quote
Bob Barrows
Posts: n/a
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.

Bob Barrows

Reply With Quote
Posts: n/a
Perhaps try a JavaScript and/or DHTML board like

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...

*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!
Reply With Quote

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