Sure. This is using Prototype.js for clarity, you'll have to guess (I don't know) how to describe it in jQuery, if that's your thing.
<select name="foo" id="foo" size="1">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
</select>
var new_options = [{"value": "5", "text": "Five"}, {"value": "6", "text": "Six"}];
var foo = $('foo');
foo.options.length = 0;
new_options.each(function(opt){
foo.options[foo.options.length] = new Option(opt['text'], opt['value']);
});
> To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/C108F5F1-049F-4CE4-858A-01B4E5D3AE2A%40googlemail.com.