If you just need to set the value of a dropdown then the best way is
$("#ID").val("2");
If You have to trigger any script after updating the dropdown value like If you set any onChange event on the dropdown and you want to run this after update the dropdown than You need to use like this
$("#ID").val("2").change();