User Profile

Collapse

Profile Sidebar

Collapse
themightystef
themightystef
Last Activity: Apr 4 '12, 03:57 PM
Joined: Apr 3 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • themightystef
    replied to function output as form value
    nevermind, i forgot to add the id for the textbox, but its working now, thank you very much for your help(:
    See more | Go to post

    Leave a comment:


  • themightystef
    replied to function output as form value
    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>
    ...
    See more | Go to post

    Leave a comment:


  • themightystef
    started a topic function output as form value

    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...
    See more | Go to post
No activity results to display
Show More
Working...