title: How to get the selected radio button value using js
body: <p>I am using this code to get the value of currently selected radio button, but it doesn't work.</p>
  
  <pre><code>var mailcopy = document.getElementById('mailCopy').value; 
  </code></pre>
  
  <p>How to get the currently selected radio button value using Javascript?</p>