23
I have radio buttons like this:
<div id="radio">
<input type="radio" id="radio1" name="radioOption" /><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radioOption" checked="checked" /><label for="radio2">Choice 2</label>
<input type="radio" id="radio3" name="radioOption" /><label for="radio3">Choice 3</label>
</div>
And apply the button set like this:
$(function () {
$("#radio").buttonset();
});
I need to get the selected radio button without binding to the click event.