Can someone please help with this code? I'm trying to redirect to the value of each radio button when it's clicked. Any guidance or JavaScript code would be greatly appreciated. Thank you.
I've tried multiple solutions but none of them seem to be working.
<input type="radio" onclick="Form()" name="userType" value="signup-customer.html" >Client</br><input type="radio" onclick="Form()" name="userType" value="signup-provider.html" >Provider</br
<input type="radio" onclick="Form()" name="userType" value="signup-supervisor.html" >Supervisor</br>
<script>
$(function(){
$("form").submit(function(e) {
e.preventDefault();
window.location = $(this).find('input[type="radio"]:checked').val();
});
});
</script>