Re: Change the same span element all the time



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
.



Relevant Pages

  • RE: Share AppSettings configuration between a service Web and an asp.net web application
    ... the IIS root site and modify the AppSettings section in it, ... Here is a test function which open & modify web.config file in IIS site ... Microsoft MSDN Online Support Lead ... Share AppSettings configuration between a service Web and an ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [PATCH][4/5] RapidIO support: ppc32
    ... > # Loadable module support ... > new file mode 100644 ... > modify it ...
    (Linux-Kernel)
  • RE: Printing error on XP SP 2 Clients from LAN Pritner off of Server 2
    ... non administrator privileges. ... you should modify it using domain Administrator privilege on the printer. ... Online Partner Support ...
    (microsoft.public.windows.server.sbs)
  • Re: timeout expired on View
    ... View to modify the data as it is to put the data into a new Table that can be ... I understand that when you run query in view design ... Microsoft Online Community Support ... a Microsoft Support Engineer within 2 business day is acceptable. ...
    (microsoft.public.sqlserver.tools)
  • Re: The Best Browser for Vista
    ... Snit wrote: ... many users prefer the results of standards compliance in the writing ... What comment of mine do you think was dishonest... ... support your accusation. ...
    (comp.sys.mac.advocacy)