Re: [Httpunit-develop] [WebForm] Checkboxes
Brought to you by:
russgold
From: Russell G. <rus...@ht...> - 2003-04-29 23:07:23
|
On Tuesday, April 29, 2003, at 11:14 AM, Marco Kaiser wrote: > > Hi list, > > I've got a problem with "checking" checkboxes . > > The servers response is a table with a list of checkboxes like this: > > <input type="checkbox" name="colors" value="red"> > <input type="checkbox" name="colors" value="green"> > <input type="checkbox" name="colors" value="blue"> > > All checkboxes are unchecked and I don't know what values will the > checkboxes have, but I need to check some of them in the response. > To do so i need to set the parameter colors with the values of the > boxes. > > Question: How do I determine, what value I can set on the form > parameters? WebForm.getOptionValues( "colors" ) in this case will return { "red", "green", "blue" } |