title: How to access inputs attributes in node js?
body: <p>Or simpler, how do I implement an equivalent of the code below in node js?</p>
  
  <pre><code>selectedRadio = document.querySelector('input[name="device"]:checked').dataset.name;
  </code></pre>
  
  <p>I'm using Node js for backend of an app with Express.js and BodyParser.</p>
  
  <p>I was able to access HTML elements with their Names with <code>req.body.elementName</code>, but I have trouble getting value from the code above.</p>