Thanks for all your help.
Cory Wright
Graphicworx...
User Profile
Collapse
-
I havew no clue what that stuff is, it doesnt show up in my code offline. The spaces came in when I pasted the code from here, I thought I removed them.
Luckily, I did figure out how to do it.
...Code:function dm(amount) { string = "" + amount; dec = string.length - string.indexOf('.'); if (string.indexOf('.') == -1) return string + '.00'; if (dec == 1)Leave a comment:
-
Thanks, that all makes sense, but it still wont do anything.
http://www.rotarytrici ties.com/test.html...Leave a comment:
-
Thanks, I know I just must be completly missing something here, but this still wont work:
...Code:<html> <head> <script><!-- function calculate() { var adultAttend = document.getElementById('adult_attend_full_#').value; document.getElementById('adult_attend_full_total').value = adult_attend_full_# * 160; } //--> </script>Leave a comment:
-
I just noticed I didnt have any link for the form process the info, or a submit button on this one (it is on the real one) I didnt think it matters....Leave a comment:
-
I appreciate all your help. I still cant seem to get it to work. I simplified it down so I could figure it out, here is the code with what you suggested:
...Code:<html> <head> <script><!-- function calculate() { document.getElementById('adult_attend_full_#').value document.getElementById('adult_attend_full_total').value var "adult_attend_full_total"Leave a comment:
-
isnt this the javascript forum?
Ok, bare with me as I am not a programmer.
So does the:
andCode:document.getElementById('adult_attend_full_#').value
Need to be in a <script></script> in the header?Code:var adult_attend_full_total = adult_attend_full_# * 160;
Do i need to do the:
...Code:document.getElementById('adult_attend_full_#').vaLeave a comment:
-
So basically I want the value from 'adult_attend_# ' to be multplied by 160, and the resulting total to appear in the 'adult_attend_t otal' field. Then I want the values of 'adult_attend_t otal' and 'child_attend_t otal' to be added together in 'total' field.
There is actually going to be more to the form, but basically using the same concept, one number that is inputed needs to be multiplied by a fixed number to show a total for that...Leave a comment:
-
If there is a simple way to implement a javascript function into an already established HTML form that uses php to process that would be great.
I wouldnt expect it to be custom written, I would assume there has to be something like this out there that has already been done, or at least elements that I can use.
Like i said, I have the way to process the forms and can create the forma nd everything else, I just need...Leave a comment:
-
Auto Populating Form
Hello All,
I am created an Event Sign up form. They have a bunch of different conferences during the event people can sign up for. What i want to do is when they check an event, the costs of the event is automatically added to a "total" field at the bottom so people know how much they are paying. I assumed this would be simple, but i cant find for the life of me how to do it.
Any help would be very greatly...
No activity results to display
Show More
Leave a comment: