Re: about setSelect of HTMLOptionElement?
Lars Krüger <[email protected]> Mon, 22 Sep 2003 12:31:44 +0200
| Newsgroups | gmane.comp.java.enhydra.general |
|---|---|
| Message-ID | <[email protected]> |
hi,
i have no problems. This works in my system:
HTMLOptionElement o_Option;
o_Option = site.getElementXYZ();
o_Option.setSelected(true);
Bests!
Lars
Su Baochen schrieb:
> hi,
>
> I'm using xmlc 2.2 with tomcat 4.1.27, but when calling setSelect
> method of HTMLOptionElement, the browser tell me:
>
> java.lang.NoSuchMethodError:
> org.w3c.dom.html.HTMLOptionElement.setSelected(Z)V
>
> Then I changed setSelect() to setAttribute("selected","selected"),
> everything seems ok.
>
> Any suggestion? Thanks!
>
> linuxman