Friday, August 14, 2009

Grouping radio buttons the jQuery way.

I figured I’d share how to handle grouping of radio butons using jQuery.
Color:



Favorite:





Users:




Or

Groups:





All you need to do is use the same value for the GroupName attribute of your radio buttons.






Then insert the script below into your page:

<script language="javascript" src="http://vreboton.googlepages.com/jquery-1.3.2.min.js"></script>
<script language="javascript" src="http://vreboton.googlepages.com/jquery.vreboton.UniqueRadioButton.js"></script>









No comments:

Post a Comment