tags:

views:

28

answers:

1

Hi,,

 <li><a href="#" id="radio">Multiple Choices</a></li>

onclick of this radio i am trying to generate a radio button with two choices .. How to do so in JQUery??

+3  A: 

I'm not sure if you really meant "radio", but if you did, maybe you want something as simple as:

$("#radio").click(function(){
    $("#myRadioContainerSelector").html("<input type='radio' id='yes' name='myRadio' value='yes' /><label for='yes'>Yes</label><input type='radio' id='no' name='myRadio' value='no' /><label for='no'>No</label>");
});
jayrdub