There is HTML

<div> <input type="radio" id="mode_c1" name="type" checked="" value="0"> <label for="mode_c1"><span></span>&nbsp;&nbsp;По Казахстану</label> </div> <div style="margin-top:10px;"> <input type="radio" id="mode_c2" name="type" value="1"> <label for="mode_c2"><span></span>&nbsp;&nbsp;По городу</label> </div> 

How do I know which radiobutton selected?
What event to hang the listener?

    1 answer 1

     $('input[type=radio]').change(function() { alert(this.value); }); 
    • You can, by the way, use :radio instead of [type=radio] . - Regent