JSFiddle - React, Tailwind, and code Playground

HTML

<form id="testeForm" name="testeForm">
  abc <input type="radio" name="teste_radio" value="1"/>
  def <input type="radio" name="teste_radio" value="2"/>
  ghi <input type="radio" name="teste_radio" value="3"/><br/>
  
  jkl <input type="radio" name="teste_radio_2" value="4"/>
  mno <input type="radio" name="teste_radio_2" value="5"/>
  pqr <input type="radio" name="teste_radio_2" value="6"/>
  
  <input type="button" id="asd" value="pegar valores"/>
 </form>

JavaScript

$("#asd").click(function() {
    alert($('input[name=teste_radio]:checked').val());
    alert($('input[name=teste_radio_2]:checked').val());
} );