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
625
WebDropDown Get Selected Item Text in Javascript
posted

Hi 

I am using inartistic  webedropdown and I want to validate all the drop down selected Item text in Javascript . I  did  $find('<%=dd.ClientID %>').get_selectedItems() but unable to get the selected text of the Item in javascript . I have set MultipleSelection = false  and If user manually delete the selected  text in the dropdown I should get Text as null in Javascript . Please provide me a solution for this issue .

Parents
No Data
Reply
  • 37874
    posted

    Hello Sujay,

    You can achieve this using the following code:

     var value = $find('<%=dd.ClientID %>').get_currentValue();

    Let me know if this helps.

Children