Sunday, 5 October 2014

radio button validation in jquery

<input class="attrInputs" type="radio" name="chest" value="A">
<input class="attrInputs" type="radio" name="chest" value="B">
<input class="attrInputs" type="radio" name="chest" value="C">
   
    radio button validation in jquery


==============================

if($('input[name=chest]:checked').length<=0)
{
 alert("No radio checked")
}

=======================================================
demo

No comments:

Post a Comment