Is there a way to reset the displayed text in the dropdown textbox to the selected item's text on blur?
SCENARIO:
I thought something like this, but it's not working.
function wddMedications_Blur(sender, e) { sender.set_currentValue($find('<%= wddMedications.ClientID %>').get_selectedItem().get_text(), true);}
Hi johnvrsm,
I would suggest you to try something like the following code:
function onBlur(sender, args) {
var selectedItemText = sender.get_selectedItem().get_text();
sender.get_element().getElementsByTagName('input')[0].value = selectedItemText;
}
Please let me know if this helps.
Hello johnvrsm,
If you need any further assistance with the matter, please let me know.