Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Multiple values for one checkbox?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #168595
    grindleydesigns
    Participant

    Please forgive my ignorance here, (I’m no Javascript expert), but hopefully I can explain what I’m trying to achieve. I’m creating a form that includes a list of items that need to have a numeric value associated with them. It is a list of courses/tests, and each is worth a certain number of credits. Each test has a checkbox next to it and it needs to add the total number of credits for all checked items. When the user submits the form it needs to report both the name of the course as well as the number of credits. Is there a magical way to achieve something like this in Javascript? Unfortunately I don’t have any code to show, so I’m hoping that the basic idea will be enough to point me in the right direction. Here is a screenshot of what I’m talking about.

    http://grab.by/wk3m

    Thanks for any help I can get!

    #168614
    grindleydesigns
    Participant

    That’s perfect, except when the user submits the form it would need to report the name of the course as well. Is something like that possible?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.