I have 2 fields on my form that does some simple math to pass a dollar amount to an external form.
Example:
Field asks how many guests are attending, user puts in 3. A client side event (specifically: $(amount) = parseInt($(attendees)) * 15.00) multiplies that number and passes it to a hidden field ($amount) that gets passed as a querystring variable to the external form.
Make sense so far?
That client side event works perfectly, however the output doesn't have any decimal places to make it look like currency. Is there a way to force the sum of the equation to 2 decimal places (ex: 15.00)? I'm no good with code, I had to find an example of this client side event on another form and modify it for my purposes.
If somebody could help me out i'd be very appreciative!
Thanks.