title: Get value from object with javascript
body: <p>I have a javascript variable (selectCategory) that contains an object. When I console log the object I get the below output:</p>
  
  <pre><code>0: &lt;input id="radio-2087915-2" class="input_category" type="radio" name="2087915" value="Food" checked="checked"&gt;
  ​
  context: &lt;input id="radio-2087915-2" class="input_category" type="radio" name="2087915" value="Food" checked="checked"&gt;
  ​
  length: 1
  </code></pre>
  
  <p>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.</p>
  
  <p>This is probably super basic but how can I get this value into a variable?</p>