var myDiv = document.getElementById("chk11");
var checkBox = document.createElement("input");
var label = document.createElement("label");
var OkBtn = document.getElementById("ok");
var BackBtn = document.getElementById("back");
checkBox.type = "checkbox";
checkBox.value = results.rows.item(i).value;
myDiv.appendChild(checkBox);
myDiv.appendChild(label);
label.appendChild(document.createTextNode(results.rows.item(i).value));
myDiv.appendChild(BackBtn);
myDiv.appendChild(OkBtn);
the checkbox at one line and label of checkbox at differ ...
Go to the complete details ...