I am running into a strange issue. I have a dropdown list that contains some values. Using JQuery code I am trying to set one option as the selected one:
$('.myform #company').val('10K');
The company element is the dropdown select and one of the options in it has the value of 10K. If I try the same code for a different value in the same dropdown it works just fine.
I’m a little bit at a loss. I have a hard time thinking that the actually string value 10K is what is causing it…
Thanks
<option value="">Select</option>
<option value="10K ">10k Filing</option>
<option value="501C">501c3 Filings</option>
<option value="F990">Form 990</option>
Surprised nobody has pointed this out, but the value of that option has an extra space: