Re: Change the same span element all the time
- From: RobG <rgqld@xxxxxxxxxxxx>
- Date: Sat, 29 Apr 2006 21:54:25 +1000
Ronaldo Junior wrote:
You don't need to replace the entire element to chance its text. Use
the innerText property to modify it:
What are you replying to? Please don't top-post in this newsgroup.
var newSpan = document.createElement("FirstNameLengthLabel");
newSpan.innerText = "New label text";
Why use an IE proprietary method when standards compliance is no more difficult and ensures support for a much wider variety of browsers?
[...]
--
Rob
.
- References:
- Change the same span element all the time
- From: David
- Re: Change the same span element all the time
- From: Ronaldo Junior
- Re: Change the same span element all the time
- From: David
- Re: Change the same span element all the time
- From: Ronaldo Junior
- Change the same span element all the time
- Prev by Date: Re: Change the same span element all the time
- Next by Date: Re: Create DOM object holding an external page
- Previous by thread: Re: Change the same span element all the time
- Next by thread: Re: Change the same span element all the time
- Index(es):
Relevant Pages
|