Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Create Table Based On Checked Checkboxes

    Hello everyone!

    I have a webpage with a large series of checkboxes. The user is able to check as many or as few checkboxes as they like. I'm trying to add a button that will create a table of all checked checkboxes on the same page. I am new to JavaScript and I cannot find any information regarding creating tables in this manner, so any help with a way to go about this would be greatly appreciated.
    Thanks.

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,969
    Thanks
    56
    Thanked 557 Times in 554 Posts
    you mean you want the table to have clones of the checked checkboxes? or populate the table with the values of the checked checkboxes? or make the unchecked checkboxes disappear? sorry, I'm lost...

  • #3
    New Coder
    Join Date
    Sep 2012
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts
    createElement() allows the dynamic creation of elements.

    You can use the checked() method on each of your checkboxes to see if they're checked or not.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •