Hello,
I'm trying to create a SELECT TAG with several options. That's not a problem.
How can you set an element to selected?
Here is what I want to do.
<SELECT NAME="Country" SIZE="1">
<OPTION VALUE="de_DE"> German
<OPTION VALUE="en_US" SELECTED > English
<OPTION VALUE="th_TH"> Thai
</SELECT>
I haven't found a way to do this yet.
Here is my current code. It works great. I just haven't found a way to "SELECTED" an element yet.
Select b = new Select("Country", "1");
b.setFilter ( new CharacterFilter().addAttribute ("&", "&" ) );
b.addElement( new Option("de_DE").addElement("German")
.addElement ( new Option("en_US").addElement("English"))
.addElement ( new Option("th_TH").addElement("Thai")));
print(b.toString());
Any clues on how to select an option ("SELECTED") from the group?????
_______________________
Nicholas Neuberger
Intermediate Software Engineer
E-mail: [EMAIL PROTECTED]
