A simple, lightweight jQuery plugin to create custom radio button (compatible with Twitter Bootstrap)
jQuery (>= 1.9.0)
First of all, include Google API and jQuery
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>window.jQuery || document.write('<script src="path/to/jquery/jquery-1.9.1.min.js"><\/script>')</script>
<script src="/path/to/radio.min.js"></script>
Then, create element that will contain the piechart
<div id="myradiogroup">
<label>
<input type="radio" name="foo" value="1" checked>
Lorem ipsum #1
</label>
<label>
<input type="radio" name="foo" value="2">
Lorem ipsum #2
</label>
</div>
Use the plugin as follows:
$('#myradiogroup').radio();
<div id="myradiogroup">
<label>
<input type="radio" name="foo" value="1" style="display: none;" checked>
<i class="icon-check"></i>
Lorem ipsum #1
</label>
<label>
<input type="radio" name="foo" value="2" style="display: none;">
<i class="icon-check-empty"></i>
Lorem ipsum #2
</label>
</div>
None.
Coming soon!
MIT