Set the selected index of a Dropdown using jQuery

后端 未结 10 811
离开以前
离开以前 2020-11-30 17:49

How do I set the index of a dropdown in jQuery if the way I\'m finding the control is as follows:

$(\"*[id$=\'\" + originalId + \"\']\") 

I

10条回答
  •  生来不讨喜
    2020-11-30 18:39

    This also work proper in chrome and internet Explorer

    $("#MainContent_cmbEvalStatus").prop("selectedIndex", 1).change();
    

    Put according your choice possition value of DropDown 0,1,2,3,4.....

提交回复
热议问题