vignesh vignesh - 11 days ago 6
jQuery Question

how can i group radio buttons that are in different div tag

I have radio buttons placed in different

div


See the below example

HTML

<div><input type="radio"/></div>
<div><input type="radio"/></div>
<div><input type="radio"/></div>
<div><input type="radio"/></div>


So how can i make only one of these selectable??

Live jsfiddle here

Answer

add an attribute name="myRadio" for each radio.