i am trying to get the value of radio button which is generated by jquery. I think there is some problem in call events. Here is my code.
HTML<div id="divOption1"></div>
Jquery radio button generatedocument.getElementById('divOption1').innerHTML = '<input id="option1" type="radio" value="1"/> '+ questions[currentQuestion]['option1'];
here i call jquery function to get radio button value
$("#option1").click(function (){
alert($(this).val());
})
help me to figure out where is the problem.