I have a dropdown
<select class="form-control" id="defectstatus" name="defectstatus">
<option selected="selected" value="Pick One">Select Defect Status</option>
<option value="New">New</option>
<option value="Needs more info">Needs more info</option>
Now I have a variable
a=$("#answer").html();
alert(a);
For which the value of a is
New
What I want to do is something like this
$("#defectstatus").val(a);
Then my dropdown defectstatus will change default selected to New instead of Pick One