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
85
get_selectedItem().get_value(); is Null
posted

Hi,

I am trying to call javascript method for OnBlur client of webdropdow.

I want to clear the text of webdropdown if user types something and click tab... in case if they didn't selected any of the dropdown value.

wddValue =$find('<%= WebDropDown1.ClientID %>').get_selectedItem().get_value();

I'm getting get_selectedItem()   as null.

 

What am I doing wrog?

Is there any short method to achieve what i'm trying to do?

Thanks