Want to fire Dropdown SelectedIndexChanged Event in Javascript

后端 未结 4 582
春和景丽
春和景丽 2021-01-13 01:38

I have dropdown on my page, I am changing selected value of dropdown from popup window using javascript. I have some logic in dropdown SelectedIndexChanged event, so I need

4条回答
  •  礼貌的吻别
    2021-01-13 02:11

    document.getElementById('<%= yourDropdown.ClientID %>').onchange();
    

    This should work, if you are still getting some error, you can try like this:

    setTimeout('__doPostBack(\'yourcontrolClientSideID\',\'\')', 0);
    

    yourcontrolClientSideID is the ID of Rendered Client ID.

提交回复
热议问题