I have a for loop like below, In which i need to add another radio button which will be a loop according to a user selected value (Which is stored in a variable " i " ). How can i add another loop inside this ? or any other way to do this . Thanks in advance

for (var NoPrticiField = 1; NoPrticiField <= selectPartiNo; NoPrticiField++) {
NoPrticiField: NoPrticiField,
empname: ko.observable(),
designation: ko.observable(),
email: ko.observable()

Eg :

If i = 2

My loop should be like below

<input type="text" name="empname" id="empname">
<input type="text" name="designation" id="designation">
<input type="text" name="email" id="email">
<input type="radio"> <input type="radio">