I have a javascript variable (selectCategory) that contains an object. When I console log the object I get the below output:
0: <input id="radio-2087915-2" class="input_category" type="radio" name="2087915" value="Food" checked="checked">
context: <input id="radio-2087915-2" class="input_category" type="radio" name="2087915" value="Food" checked="checked">
length: 1
I'm trying to get the name value from the object but whatever I try, for example: var name = selectCategory.name; results in a null value.
This is probably super basic but how can I get this value into a variable?