I have a dropdown which lists heights, like this:
5′ 9″
5′ 10″
5′ 11″
6′ 0″
Etc.
When I view source, it looks like this:
<option value="5' 9"">5' 9"</option>
<option value="5' 10"">5' 10"</option>
<option value="5' 11"">5' 11"</option>
<option value="6' 0"">6' 0"</option>
How can I set the selected value of my dropdown box via Javascript when those characters are in there?
I tried:
document.GetElementById(“myDDL”).value = ‘5\’ 11\”‘;
However that is not working and I’m just taking stabs in the dark.
Thank you!
Works fine for me on Safari 4, MobileSafari 3.1, Firefox 3.5 and Opera 10.10
Did you try
with a small
g?