Discussion Locked

DHTML via DOM and Value Display in IE5

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When building DHTML using the DOM, I see checkbox state displayed incorrectly, or lost. Anyone know what I should do differently? An example follows.

Thanks in advance, JB

P.S. Sorry for all the alerts...

State after appendChild

The following should be checked:

3 replies

by olivier_de-polignac

Here is the answer:

State after appendChild

The following should be checked:

You had 2 problems: first you were modifying the body of your page before it was fully loaded (use OnLoad event), and then you have to set up the attribute checked AFTER adding the element to the DOM.

Regards

Olivier

This discussion is closed to new replies.