114 pointsSerious WPMU DEV-sterI'm helpful
Giovanni
Member
—
3rd February 2012 (3 months ago)
This does not involve Wordpress I don't think but I need help.
I have a form with two fields: Price and Quantity
I would like to display dynamically the total based on the values of Price and Quantity.
When the input to those fields are not Floats, just show N/A on the Total field. Ideally, the Total Field is not a form input readonly though and it's a span or <p> tag of some sort.
Can someone please help? I've googled the hell out of it for like 3 hours and no luck.
This does not involve Wordpress I don't think but I need help.
I have a form with two fields: Price and Quantity
I would like to display dynamically the total based on the values of Price and Quantity.
When the input to those fields are not Floats, just show N/A on the Total field. Ideally, the Total Field is not a form input readonly though and it's a span or <p> tag of some sort.
Can someone please help? I've googled the hell out of it for like 3 hours and no luck.
Responses (2)
Support Chimp — 4th February 2012 (3 months ago) #
Hey Giovanni.
Is that the whole form and JS? I see a lot of tables in there also?
Perhaps this might help guide you better:
http://stackoverflow.com/questions/4615655/auto-calculate-form-fields-value-using-jquery-calculation-plugin
Take care.
Member — 4th February 2012 (3 months ago) #
Thanks.
Become a member