The code below only confers the first input radio, does anyone know how to fix it so that it recognizes at least one radio input marked
$(document).ready(function(){
$(document).on('click','#teste',function(){
if($('#area').is(":checked"))
{
alert('marcado');
}
else
{
alert('n marcado');
}
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><inputtype="radio" name="area" id="area" value="vl1">
<input type="radio" name="area" id="area" value="vl2">
<input type="radio" name="area" id="area" value="vl3">
<input type="radio" name="area" id="area" value="vl4">
<button id="teste">TESTE</button>