My attachment is a timetable where names can be dropped to any of the white cells.
It has got 3 buttons :
1) NEXT - Takes user to next week
2) CURRENT - Takes user to present week
3) RESET - All the white cells should be emptied of the dragged names.
I have made a function
dragDropResetForm for resetting the white cells (starts at
line no. 447 in my latest attachment)
Code:
function dragDropResetForm()
{
var mainContainer = document.getElementById('dhtmlgoodies_mainContainer');
var uls = mainContainer.getElementsByTagName('UL');
for(var no=0;no<uls.length;no++)
dhtmlgoodies_listOfItems.appendChild(uls[no]);
}
dhtmlgoodies_mainContainer
---> white cells
dhtmlgoodies_listOfItems
---> name list (last column)
Obviously, it doesn't run.
Plz help !