$("#toCurrency option[value=" + $('#crrencycnvrtto').val() +"]").attr("selected","selected") ;

using the above code to assign selectbox dynamically not showing the proper value as selected. But when i am clicking on the selectbox it’s showing that the option is selected.
Any idea
If you are using jquerymobile you should refresh your select box:
$('#toCurrency').selectmenu('refresh');