471,852 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

Checking and unchecking of checkboxes

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
3 1498
16,027 Expert Mod 8TB
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
When I click on move button the unchecked boxes should be moved...
Jul 3 '09 #3
16,027 Expert Mod 8TB
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.

Similar topics

reply views Thread by Pat Roy | last post: by
1 post views Thread by Ramakrishnan Nagarajan | last post: by
2 posts views Thread by Aaron Reimann | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.