SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Jun 26, 2007, 17:06 #1
- Join Date
- Aug 2005
- Location
- Belgium
- Posts
- 387
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
number submited in a form multiplied by x?
Hello,
I'm really bad at JS, and I've been searching for this, but all I found was http://javascript.internet.com/forms/order-form.html
I need some sort of a order page.
A form, with only one field, where you type in a number.
Now when the number is typed, somewhere on the same page, without submiting you see for example, if the number typed was 7, apper in a text box or someething in bold "75$".
Like, the first item was "15$" and each additional only 10$
So for 6 you'd get "65$"
Can someone help me with this if it isn't to much work?
Thanks alot!
-
Jun 27, 2007, 02:14 #2
- Join Date
- Aug 2005
- Location
- Belgium
- Posts
- 387
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hey,
I also found this tutorial:
http://javascript.internet.com/math-...est-price.html
It's actually kind of what I need, but this one has a bit to many options.
I need it with only 2 prices, the first one(that is more expensive, shipping costs etc, and all others are same price.
I trryed cutting parts out, but it doesn't work at all.
Can someone help please?
Thanks.
Bookmarks