Skip to main content
Question Protected by Sheldore
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

If you know the Index, Value or Text. also if you don't have an ID for a direct reference.

ThisThis, thisthis and thisthis are all helpful answers.

Example markup

<div class="selDiv"> <select class="opts"> <option selected value="DEFAULT">Default</option> <option value="SEL1">Selection 1</option> <option value="SEL2">Selection 2</option> </select> </div> 

If you know the Index, Value or Text. also if you don't have an ID for a direct reference.

This, this and this are all helpful answers.

Example markup

<div class="selDiv"> <select class="opts"> <option selected value="DEFAULT">Default</option> <option value="SEL1">Selection 1</option> <option value="SEL2">Selection 2</option> </select> </div> 

If you know the Index, Value or Text. also if you don't have an ID for a direct reference.

This, this and this are all helpful answers.

Example markup

<div class="selDiv"> <select class="opts"> <option selected value="DEFAULT">Default</option> <option value="SEL1">Selection 1</option> <option value="SEL2">Selection 2</option> </select> </div> 
added 26 characters in body
Source Link
Danil Speransky
  • 30.5k
  • 6
  • 70
  • 78

If you know the Index, Value or Text. also if you don't have an ID for a direct reference.

This, this and this are all helpful answers.

Example markup

<div class="selDiv">   <select class="opts">   <option selected value="DEFAULT">Default</option>   <option value="SEL1">Selection 1</option>   <option value="SEL2">Selection 2</option>   </select> </div> 

If you know the Index, Value or Text. also if you don't have an ID for a direct reference.

This, this and this are all helpful answers.

Example markup

<div class="selDiv">   <select class="opts">   <option selected value="DEFAULT">Default</option>   <option value="SEL1">Selection 1</option>   <option value="SEL2">Selection 2</option>   </select> </div> 

If you know the Index, Value or Text. also if you don't have an ID for a direct reference.

This, this and this are all helpful answers.

Example markup

<div class="selDiv"> <select class="opts"> <option selected value="DEFAULT">Default</option> <option value="SEL1">Selection 1</option> <option value="SEL2">Selection 2</option> </select> </div> 
edited title
Link
GEOCHET
  • 21.3k
  • 15
  • 78
  • 99

[jQuery] How do you select a particular option in a SELECT element in jQuery?

Source Link
Jay Corbett
  • 28.5k
  • 22
  • 59
  • 74
Loading