oeyvind toft wrote:
[color=blue]
> How do I create a checkbox element ? Or any other input type ?
> document.create Element('checkb ox') doesnt seem to work.[/color]
On Sun, 5 Sep 2004 23:32:43 +0200, Ivo <no@thank.you > wrote:
[Modifying attributes after a createElement call]
[color=blue]
> Some browsers have a problem assiging names to dynamically created input
> elements in this way. You should define the name like so:
>
> var checkbox = document.create Element('<input name="chName">' );[/color]
Whilst Microsoft may support that syntax, it is *not* correct. The
argument is the element name only.
I can't test with Mozilla at the moment, but Opera returns undefined[1]
with such a call, so the approach cannot be recommended at all.
Mike
[1] I'm surprised it didn't throw an exception.
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Comment