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
I am new to Infragistic controls. I am using WebDropDown.
Following is the code I am trying:
var xyz = $find("<%=WDDDeviceStatus.ClientID %>").get_selectedItem().get_value();
alert(xyz);
If I avoid get_value(), this will return Object object. I am unable to understand how to get the value from it.
Basically i want to fetch the selected values from the drop down. Please please help me. I am struggling with this for 3 days now.
Hi siddhu2000,
I'm just checking if you need any further assistance with the matter.
I would suggest that you use get_currentValue() which would return the value in the textbox of the control. While get_selectedItem() returns null if you haven't selected any item from the dropdown items collection.
Please let me know if you have any further questions.