J
James Carters
Have a long scrolling list of checkboxes and I want to move the checked
checkboxes into an adjacent div, works on firefox, but ie wont let them be
checked, is this doable? Failing that does anyone know of a way to do this
with multiselects without requiring ctrl click?
function selectfield(o){
var checked_owner_container =
document.getElementById('checked_owner_container');
var row = o.parentNode;
var new_checkbox = row.cloneNode(true);
var checked_box = new_checkbox.firstChild;
checked_box.checked = true;
checked_box.onclick=function(){deselectfield(this);}
checked_owner_container.appendChild(new_checkbox);
}
checkboxes into an adjacent div, works on firefox, but ie wont let them be
checked, is this doable? Failing that does anyone know of a way to do this
with multiselects without requiring ctrl click?
function selectfield(o){
var checked_owner_container =
document.getElementById('checked_owner_container');
var row = o.parentNode;
var new_checkbox = row.cloneNode(true);
var checked_box = new_checkbox.firstChild;
checked_box.checked = true;
checked_box.onclick=function(){deselectfield(this);}
checked_owner_container.appendChild(new_checkbox);
}