Hi,
I am adding radio Buttons using JQuery and their text values does not appear even though in the Chrome debugger the text value is inserted correctly.
Can someone tell me what the issue?
The code:
I am adding radio Buttons using JQuery and their text values does not appear even though in the Chrome debugger the text value is inserted correctly.
Can someone tell me what the issue?
The code:
Code:
$(document).ready(function(){ for(var i=0;i<10;i++) { var tmpScenario = "scenario"+i; var tmpInput = $("<input>",{"type":"radio","name":"scenario","id": tmpScenario}); $("#insertScenarios").append(tmpInput); $("#"+tmpScenario).text(tmpScenario); $("#"+tmpScenario).addClass("radioPadding"); } });
Comment