developer155
Programmer
Hi,
can someone help me out with this:
I need a function that accepts string and then creates dynamic checkboxes based on the string elements. PLease review what I have,let me know if this is wrong or not
function CreateCheckboxes(var data1)
{
var data = data1.split(",")
var s = document.getElementById(zipHtmlId);
for(var c=0 ; c<data.length ; c++)
{
var checkbox = new checkbox(data[c], data[c]);
s.Checkboxes[c] = checkbox;
}
}
}
can someone help me out with this:
I need a function that accepts string and then creates dynamic checkboxes based on the string elements. PLease review what I have,let me know if this is wrong or not
function CreateCheckboxes(var data1)
{
var data = data1.split(",")
var s = document.getElementById(zipHtmlId);
for(var c=0 ; c<data.length ; c++)
{
var checkbox = new checkbox(data[c], data[c]);
s.Checkboxes[c] = checkbox;
}
}
}