I have a dynamically created select option using a javascript function. the select object is
<
This should work.
$("#country [value='ID']").attr("selected","selected");
If you have function calls bound to the element just follow it with something like
$("#country").change();