Using Value Attribute setting dropdown item selected
$('#selectGraphicsMode').val(graphicsEdit[i].ModeId);
Using text property setting dropdown item selected
$("#selectAgency option:contains(" + graphicsEdit[i].AgencyId + ")") .attr('selected', 'selected');
No comments:
Post a Comment