<select class="form-control" tabindex="6" id="ddlSex"> <option value="M">Female</option> <option value="N">Male</option> </select>
$.each(item.Sex, function (i,item1) { if (i == 'N') { $("#ddlSex").val(item1.Sex).trigger('change'); } });
$("#ddlSex option[value='"+item1.Sex+"']").attr("selected", true)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)