By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,453 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,453 IT Pros & Developers. It's quick & easy.

Checking and unchecking of checkboxes

P: 7
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.

Jul 2 '09 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 15k+
P: 16,027
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?
Jul 3 '09 #2

P: 7
When I click on move button the unchecked boxes should be moved...
Jul 3 '09 #3

Expert Mod 15k+
P: 16,027
That seems a bit unintuitive, but anyway, post your code and show what problems you're having trying to implement it.
Jul 3 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.