Results 1 to 13 of 13

Thread: [RESOLVED] JavaScript innerHTML Problem

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Resolved [RESOLVED] JavaScript innerHTML Problem

    Why does

    Code:
    theMenuSection.innerHTML='<ul>';
    alert(theMenuSection.innerHTML);
    Produce

    Code:
    <ul> </ul>
    ?

    This is very annoying since the list has a child list inside it and is constructed as the page is loading. Is there any way to prevent JavaScript from closing off the <ul> tag?

    theMenuSection is a div tag (also tried span).
    Last edited by Slyke; Dec 11th, 2008 at 09:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width