how to select multiple items in a listbox
Posted: Mon May 31, 2010 10:42 am
Hi,
I want to select multiple option items in a listbox with the following html code:
When I check the tagValue of the selectTag, it always return single option selected, is it supposed to return some multiple values like "4,3"?
And the "Selected" attribute of all optionTag is always True for IE, always False for FF, I am not sure if this is a bug.
Pls advise and provide a sample if possible.
thanks a lot
I want to select multiple option items in a listbox with the following html code:
Code: Select all
<select myattri='cool' name="listbox" id="SelectSimple" size="4" multiple>
<option value="1">item 1</option>
<option value="2" >item 2</option>
<option value="4" selected>item 4</option>
<option value="0">All</option>
<option value="3" selected> item 3 sdfasfdasdf asdf asd fasfdasd asd </option>
</select>
And the "Selected" attribute of all optionTag is always True for IE, always False for FF, I am not sure if this is a bug.
Pls advise and provide a sample if possible.
thanks a lot