I am trying to add a 7% tax onto the final subtotal. So I did the following
var alertMessage = 'Thanks for the order ' + field1 + ' ' + field2 + '. Your total is $' + (field3 * field4 + field5) + **(field3 * field4 + field5) * 0.07** '.00.';
alert(alertMessage);
I know this is wrong, but it was the only way to type it on here to get my idea across. I have it working in the code below without adding the 7% tax. I also need the final calculation to format to a standard $??.?? The other question I have is for the alert messages. Currently I have it set to check only field1 and field2 which is firstname and lastname to make sure they are filled if not it provides in error. How would I go about adding the same check for the 3 select boxs? I tried doing it like what i used on the input boxes but it does not work since they are select boxs. If someone could figure this out for me I would greatly appreciate it. Thanks! Below is a link to a working fiddle.