473,322 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Checking and unchecking of checkboxes

7
Hi,

I have a list of around 10 checkboxes, when the user checks on say around 3 checkboxes then the rest 7 of the checkboxes should be moved to another table and should be automatically checked.
Can anybody suggest me on how can I do this?

Thanks
Jul 1 '09 #1
4 1437
Dormilich
8,658 Expert Mod 8TB
could you elaborate more? your intention is not clear to me.
Jul 2 '09 #2
sakkat
7
I should have a table with 2 columns in it, the first column will contain 10 checkboxes 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 #3
sakkat
7
Can somebody please help me out with my problem?
Jul 2 '09 #4
dlite922
1,584 Expert 1GB
I don't have time to code but this is not a PHP problem, this thread should be moved to JavaScript.

Assuming you know the total number of checkboxes (fixed number), what you would do is in each column you would have a <div> container for each checkbox.

Of course in the beginning, all the checkboxes are in the left hand side and the right column <divs> will be empty.

then using the innerHTML() value, you move the content from the left div to the right one, such as.

Expand|Select|Wrap|Line Numbers
  1.  
  2. rightDiv_1.innherHTML = leftDiv_1.innerHTML; // copy it over to the right. 
  3. leftDiv_1.innerHTML = ""; // empty it. 
  4.  
  5.  
put the above code in a function and call it with the checkboxe's event trigger (such as onClick())

I hope that gives you an idea of where to start. If any problem, post it in the JavaScript forum. I'm sure those guys are much better JS scripters than me =)


Thanks,




Dan
Jul 2 '09 #5

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

Similar topics

7
by: Mike Lopez | last post by:
Hello. I need to set a checkbox to the "checked" state and prevent the user from unchecking it. I tried using "disabled", but then the value is not passed on the Post to an ASP page. Anyone...
1
by: Phil Galey | last post by:
In VB.NET, is there a way to make it so the user can select items in a CheckedListBox, but is NOT able to check them? Even if I set Locked = True, the user is still able to both select and check...
0
by: Pat Roy | last post by:
Hello... I've created a treeview that looks something like: Root .....Folder1 .........Subfolder1A .............File .............File .........Subfolder1B
1
by: Ramakrishnan Nagarajan | last post by:
Hi, I have two checkboxes in each row of a grid. One for Modify and another one for View. If I click Modify the View should get automatically checked and should be disabled. Earlier I did this in...
2
by: Aaron Reimann | last post by:
I have a lot of check boxes. This is an update of the check boxes, I want something was checked, then to do an insert (which is currently working), if something is no longer checked...delete the...
2
by: Geovanni Cesar | last post by:
I have a table with 12 checkboxes. I have the following function which when I check the last checkbox in the table, the first 10 checkboxes in the table are unchecked. - function...
3
by: Silgd1 | last post by:
Hey All... I have visual web jsf page, developed in netbeans 6.0, and it has a layout panel which contains three(3) checkboxes of the woodstock component variety. If a user checks one of the...
1
Death Slaught
by: Death Slaught | last post by:
I play a game that when your backpack fills with items (the limit is 45) you must choose items to discard by unchecking their box. This is very annoying and time consuming so I was wondering if it...
3
by: sakkat | last post by:
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,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.