logo       

Re: about setSelect of HTMLOptionElement?: msg#00038

java.enhydra.general

Subject: Re: about setSelect of HTMLOptionElement?

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

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise