Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
WebCombo
posted

 

how to set the selected index for web combo in javascript.

am using below code:

 var combo= igcmbo_getComboById("<%=wcProducts.ClientID%>");     
  combo.setSelectedIndex=-1;

 

but its not working pls help me

Parents
No Data
Reply
  • 49378
    posted

    Hi meetarun,

    Thank you for posting in the community.

    Please note that setSelectedIndex is a function and not a property, i.e in order to set it you can use something similar to:

    igcmbo_getComboById("WebCombo1").setSelectedIndex(3)

    Hope this helps.

Children