Skip navigation
Currently Being Moderated

Javascripts – check boxes not returning proper values

Jun 25, 2012 1:42 PM

Tags: #javasscript #jav

Hi All, not sure if this is the right place for this post... but here goes....

 

here's the url:

http://theexperience-exchange.co.uk/Mods_appleit.html

 

The contact form generates and e-mail.  At the moment the results form the checkboxes look like this:

 

$1_month

$6_months

$12_months

 

 

You can see that they aren't working... If only one is checked, they ALL show up! I know there's some html and JS needed.... looking on the web is driving me round the bend.

 

Any simple solutions that anyone knows about would be greatly appreciated.

 

All the best, RP

 
Replies
  • Currently Being Moderated
    Jun 25, 2012 1:52 PM   in reply to RepulseMonkey

    Unless you want them to have the ability to click 1, 2 or 3 of those boxes, it would be best to use a group of radio buttons. That way, only one can be clicked and only the value of the clicked button will return to you.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2012 2:05 PM   in reply to Jon Fritz II

    I agree with Jon.  Pay attention to his comment about the VALUE being returned - you must assign your radio buttons a value attribute.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2012 2:25 PM   in reply to RepulseMonkey

    You should also change your Reset Button type to reset, right now it's a submit button that just says reset on it.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 25, 2012 4:06 PM   in reply to Jon Fritz II

    Why use a reset button anyhow?  Have you ever actually clicked on one?  But to have a RESET button that actually submits the form!  What a prank!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points