469,631 Members | 1,798 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

Checking and unchecking of checkboxes

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
Jul 2 '09 #1
3 1435
acoder
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
sakkat
7
When I click on move button the unchecked boxes should be moved...
Jul 3 '09 #3
acoder
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
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.