I'm trying to get the value of the radio button that has been clicked, and I'm using the code below. But I'm getting the following error:
jquery-3.5.1.min.js:2 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
The code that I have used:
$(()=> {
$("input:radio").click(()=>{
alert($(this).val())
})
})