User Profile
Collapse
-
nevermind, i forgot to add the id for the textbox, but its working now, thank you very much for your help(: -
I think i was too unclear:P I meant to have the final amount to be entered into the textbox after the visitor presses the button. I'll try to simplify the code a bit(coz the total code is 161 lines...)
Code:<html> <head> <script> function add(){ var q1=document.myForm.productname.value; t1=q1*15.30; total=t1 alert("€ "+total);} </script>
Leave a comment:
-
function output as form value
hi,
i've been looking for the right answer but can't seem to find it, so I figured i'd give this a try.
I'm trying to make a website where visitors can input the quantity of a certain product they want, then press a button to have a function calculate the total price of the selected products. so far I've ovly been able to get this final value in an alert box, but what I'm trying to do is to have the final price written...
No activity results to display
Show More
Leave a comment: