Load Values to radio button list when page is load
I want to add dynamically one field values from table into radio button list when page is loaded? Is it possible to add!! I searched in the internet. But, i dont get any right solution still. please help me!!
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Karthikeyan KRank #554 · 4.4K reputationPosted Aug 28, 2015, 5:52 AM EDT
var num=['1','2','3','4','5'];
var rnd =num[Math.floor(Math.random()*num.length)];
$('#'+rnd).attr('checked', true);
});
Karthikeyan KRank #554 · 4.4K reputationPosted Aug 28, 2015, 5:55 AM EDT
Karthikeyan KRank #554 · 4.4K reputationPosted Aug 28, 2015, 7:19 AM EDT