Is it possible to select special <option> item with jQuery by pressing button?
For example :
<a id="item1" href="#">Item 1</a>
<a id="item2" href="#">Item 2</a>
<a id="item3" href="#">Item 3</a>
<form>
.......
<select id="items" name="items">
<option value="1">I dont know</option>
<option value="2">Item 1</option>
<option value="3">Item 2</option>
<option value="4">Item 3</option>
</select>
.........
</form>
If you press the second button than in form automatically selects second option. Is it possible?
This is a simple jQuery way of doing it.
Here is the example fiddle.