Ashura: Select feld

Beitrag lesen

Hallo derletztekick.

newOption.text = "hallo";

ich bin mir gerade nicht sicher, aber musst Du die Beschriftung nicht mit:
createTextNode() erzeugen?

Man kann, muss hier aber nicht, da das option-HTML-Element über eine http://de.selfhtml.org/javascript/objekte/htmlelemente.htm#option@title=text-Eigenschaft verfügt.

Einen schönen Sonntag noch.

Gruß, Ashura

--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]