Connecting Tech Pros Worldwide Help | Site Map

Checking and unchecking of checkboxes

  #1  
Old July 3rd, 2009, 12:32 AM
Newbie
 
Join Date: Jul 2009
Posts: 7
Hi,
I should have a table with 2 columns in it, the first column will contain 10 checkboxes(the number is not fixed it changes dynamically) and a button(move) and the second column will be empty, when the user will click on say about 2 checkboxes and clicks on the button(move) available in the first column, then the rest of the checkboxes should be moved to the next column with the checkboxes being checked.
I hope am clear this time.

Thanks
  #2  
Old July 3rd, 2009, 10:45 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,517
Provided Answers: 12

re: Checking and unchecking of checkboxes


Post what you've managed so far.

You'll have to get a list of the checkboxes:
Expand|Select|Wrap|Line Numbers
  1. var checkboxes = document.getElementsByName("nameOfCheckbox");
and loop over the node-list. When you click the move button, do you want to move the checked checkboxes or the unchecked ones?
  #3  
Old July 3rd, 2009, 11:20 AM
Newbie
 
Join Date: Jul 2009
Posts: 7

re: Checking and unchecking of checkboxes


When I click on move button the unchecked boxes should be moved...
  #4  
Old July 3rd, 2009, 11:49 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,517
Provided Answers: 12

re: Checking and unchecking of checkboxes


That seems a bit unintuitive, but anyway, post your code and show what problems you're having trying to implement it.
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking and unchecking of checkboxes sakkat answers 4 July 2nd, 2009 08:42 PM
Check All CheckBoxes In GridView Via JavaScript Problem Frinavale answers 1 May 7th, 2008 08:49 PM
Disabling Manual Checking/Unchecking of CheckedListBox Items Phil Galey answers 1 November 22nd, 2005 11:46 AM
Disabling Manual Checking/Unchecking of CheckedListBox Items Phil Galey answers 1 July 21st, 2005 03:58 PM