You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi..
Please is there a way to get the value from the combo box after user selection?
because for me it always returns empty string but I can see in the debugger that there is a value but the html value attribute tag is empty, I'm so confused.
the value is there in the debugger:
but in console is empty:
I'm using onblur event with a function like this:
function testValue(el) {
//test 1 not working
const el2 = document.querySelector("input[name='xxx']"); //test 1 not working
console.log('el2 value: ' + el2.value);
//test 2 not working
console.log('el value: ' + el.value); //test 2 not working
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi..
Please is there a way to get the value from the combo box after user selection?
because for me it always returns empty string but I can see in the debugger that there is a value but the html value attribute tag is empty, I'm so confused.
the value is there in the debugger:
but in console is empty:
I'm using onblur event with a function like this:
Beta Was this translation helpful? Give feedback.
All reactions