Rob Williams

Generation

generate functionSat, 12 Nov 2022

Function to display component from a radio

function displayRadio() { var name = document.getElementById("radioInput").value; var radioValue = $("input[name='radiobtn']:checked").val(); if (radioValue) { alert("You selected " + name + ": " + radioValue); } }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant