Portal Home > Knowledgebase > Articles Database > looking for jquery form validation help


looking for jquery form validation help




Posted by mjfroggy, 07-23-2012, 11:08 AM
I have not been able to find a tutorial to demonstrate how I would do the below so hoping someone would be able to assist What I have is a form that I will be using for accepting donations. Now when someone makes a donation they are also able to select via a series of radio dials which reward (if any) they would want. Now the reward level they select has to be equals to or less then the dollar amount they are giving. So my form looks a bit like this [ ] dollar amount you want to donate Select reward you want: () no reward - plain donation () $5.00 t-shirt () $10 coffee mug () $20 tshirt and coffeemug So if a user types in $5 then the $5.00 radio dial is automatically select but if the type in lets say $15 then the $10 radio dial is selected but they will also be able to click on the $5 or no reward radio dials and the $20 dial becomes not clickable I know this can be done with jquery but just not sure how. Suggestions??

Posted by RateLobby, 07-23-2012, 10:01 PM
I would assign consecutive IDs to each of the reward options and keep an array with the monetary value of each. Then the rest is hopefully explained by the comments, but let me know if any part of it needs further explanation.

Posted by Hire Developer, 07-24-2012, 03:22 AM
Try to visiting this link http://speckyboy.com/2009/12/17/10-u...d-tutorials-2/ where you will see good results.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Check drives in raid? (Views: 333)

Powered by WHMCompleteSolution


Language:

Customer Testimonials

John Doe
It's a great service with fantastic support. It's definately good value for your money. Overall rating, 10 out of 10.
Mike Smith
Much better than my previous hosting company - I also got help with migration at no extra cost. Friendly support too.
Copyright © 2015 DC International LLC in partnership with Bragin IT Solutions Inc. - All Rights Reserved.