How to set teh selected option on a dropdown list on a jquery dialog? : i have a table od data, when i sent the a row of data to fields on a jquery dialog it fails to set the selected value of the `dropdown list`

i have use this 

     $('#ddlProducts').val(data.prodID); 

`data.prodID` has a value but it does not set it to the `value` of the `dropdown`. How do i fix this?