Através do Código a seguir consegui criar campos checkbox.
Porém fica um espaço enorme entre a caixa de o quadradinho de opção e o Label.
Existe a possibilidade de aproximar o label do Checkbox?
// loop through fields and swap checkbox w/ label
// add the names of the attributes you wish to switch to the array.
var fields =new Array("new_question1","new_question2", "new_question3");
var n = (fields.length - 1);
for (i=0;i<=n;i++)
{
var label = document.getElementById(fields
+ "_c");
var labelHTML = label.innerHTML;
var data = document.getElementById(fields
+ "_d");
var dataHTML = data.innerHTML;
label.innerHTML = dataHTML;
data.innerHTML = labelHTML;
}
Obrigada,