[value=" + temp + "]").attr(" selected", " true");Solution If you don't have the option inside the DropDownList, then you need to append that first and then select it. Next, I have