Dapatkan JavaScript Nilai Tombol Radio
document.querySelector('input[name="rate"]:checked').value;
Vast Vole
document.querySelector('input[name="rate"]:checked').value;
var selectedOption = $("input:radio[name=option]:checked").val()
var radioButtons = document.getElementsByName("Vehicle");for (var i = 0; i < radioButtons.length; i++) { if (radioButtons[i].checked) { console.log("radioButton " + i + ": " + radioButtons[i].value); }}