Link to home
Start Free TrialLog in
Avatar of Ron1959
Ron1959

asked on

How to Process and Total field values before submitting form.

In a product configurator, as a user fills fields in on a form, I want to update a Total field.

So, if the user selects this or that configuration option, rules will dictate the value added to the total and, perhaps, change the choices available on other options when they are either dependent on one another or mutually exclusive.

This would be easy if there was a submit after each selection, but I want to save the submit for when the form is complete.

I'm starting fresh, so I can go in whatever is the best direction.  Is there a JQuery script that already does this?

Thanks!

- Ron
Avatar of Kim Walker
Kim Walker
Flag of United States of America image

I'm not aware of a jQuery script that does all these myriad of different things. How are the choices being presented that you want to change? Are you wanting to change the options in a select list? ...hide and show checkboxes or radio buttons? ...edit content in paragraphs?

The HTML DOM is rich with event handlers that can execute routines when selections or values are changed in a form. For some form fields, the onChange event can trigger routines. For others, the onClick event can trigger routines. These events and the routines they trigger can be configured using either native javascript or jQuery or both.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It might be a bit of overkill in terms of a learning curve, but you will be able to do this extremely easily with AngularJs.
Avatar of Ron1959
Ron1959

ASKER

This is exactly what I'm looking for, Julian.  

Do I need an include statement, or is this part of the standard JQuery distribution?

Thanks!

- Ron
Standard jQuery.