My application has a screen with a multiple select object. I have javascript that dynamically selects items in the object based on user input. My question is: how can I force the select object to show the first selected object in the select object's display window. I've been successful with a select box that allows only one selection but cannot seem to do it with a multiple select box. I've included an example below where item 5 is selected. The selected item does not show in the select box's window though and I don't know how to force it. Thanks for any help.
<select name="selectme" multiple size="3">
<option>dog
<option>cat
<option>giraffe
<option>elephant
<option selected>tiger
</select>

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: &nbsp

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

Share this item with your network:

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy