IE Checkboxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brett Foster

    IE Checkboxes

    How can I create a checkbox dynamically in IE by manipulating the DOM?

    Setting inputDomElement .type='checkbox ' doesn't work. IE says it can't
    'get' the member.

    Brett
  • Michael Winter

    #2
    Re: IE Checkboxes

    On Tue, 21 Dec 2004 10:36:29 -0500, Brett Foster
    <fosterb.no.s.p .a.m@ioctl.ca> wrote:
    [color=blue]
    > How can I create a checkbox dynamically in IE by manipulating the DOM?
    >
    > Setting inputDomElement .type='checkbox ' doesn't work. IE says it can't
    > 'get' the member.[/color]

    Are you assigning the value before you add the element to the document,
    and are you only assigning a value once?

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    • Brett Foster

      #3
      Re: IE Checkboxes

      Michael Winter wrote:
      [color=blue]
      > On Tue, 21 Dec 2004 10:36:29 -0500, Brett Foster
      > <fosterb.no.s.p .a.m@ioctl.ca> wrote:
      >[color=green]
      >> How can I create a checkbox dynamically in IE by manipulating the DOM?
      >>
      >> Setting inputDomElement .type='checkbox ' doesn't work. IE says it
      >> can't 'get' the member.[/color]
      >
      >
      > Are you assigning the value before you add the element to the document,
      > and are you only assigning a value once?[/color]

      The element has been added to the document and then... maybe that's it?

      Ah ha! So set the type before inserting it!

      Thanks,

      Bret
      [color=blue]
      >
      > Mike
      >[/color]

      Comment

      Working...