Javascript - Cannot Read Property 'value' Of Null - Combobox Value
Wondering if anyone could help with the following code. I have a combobox called 'cboAgreement' which is a dropdown with two values 'Agree' and 'Disagree'. I have a form where, the
Solution 1:
It means that you are trying to access a property of an object that is undefined, in other words you are trying to get it is value while it is still empty This usually happens when we don't test an object before using it. I recommend checking the element exists before getting it is value.
if (decision) {
decision = decision.value;
}
Also check this quick tutorial: https://idiallo.com/javascript/uncaught-typeerror-cannot-read-property-of-null
Post a Comment for "Javascript - Cannot Read Property 'value' Of Null - Combobox Value"