My select box is the following
<Select id="mySelect" size="9" </Select>
thanks
EDIT: This answer was helpful with chaining...however (in IE) .val('whatever') did not select the option that was added. (I did use the same 'value' in both .append and .val)
$('#mySelect').find('option').remove().end().append('<option value="whatever">text</option>').val('whatever');
EDIT: Trying to get it to mimic this code. I use this whenever the page/form is reset. This select box is populated by a set of radio buttons. .focus() was closer but the option did not appear selected like it does with .selected= "true". Nothing wrong with my existing code...just trying to learn JQuery.
var mySelect = document.getElementById('mySelect') ;
mySelect.options.length = 0;
mySelect.options[0] = new Option ("Foo (only choice)","Foo");
mySelect.options[0].selected="true" ;
EDIT: selected answer was close to what I needed...this worked for me
$('#mySelect').children().remove().end().append('<option selected value="whatever">text</option>') ;
but both answers led me to my final solution..