Hi
Ihave no idea why this is happening. I have a check box beside each song and a button that if clicked on select all the songs checkboxes and if click again it de-selects the checkboxes. Everything works fine except when click on select all button it moves the whole div on right side to the left. I have two columns left and right, left one has a width of 188px and is a menu, whereas right column is the main content. Now the right column shifts to the end of left column height and when you de select the button it comes back to its place. I don;t know what needs to be changed to make sure it doesnt shift places when click on select/deslect all button.
Thanks for any helpCode:/*code for select all de select all*/ var checkflag = "false"; function check(field) { if (checkflag == "false") { for (i = 0; i < field.length; i++) { field[i].checked = true;} checkflag = "true"; return "UnSelect All"; } else { for (i = 0; i < field.length; i++) { field[i].checked = false; } checkflag = "false"; return "Select All"; } }



Reply With Quote


Bookmarks