Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
Web General Discussion
Text Box Calculate|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Junior Mechanic |
I would like to creat a estimating webpage with a drop down box called part, a text box called price when part is selected the price that the part costs shows, a text box called quantity, a text box called total it * price by quantity, a text box called # of Hours, and a text box called total hours it * quantity by # of Hours.
Thanks |
||
|
|
Honorary 'Aussie' Mechanic |
The simplest way would be to create a form, using code to populate the appropriate price upon a selection in the part drop-down (form selection list box).
When the user enters a quantity, you could place some code in the code field of the quantity text box, # of hours etc. For example onChange="totalours.value=quantity.value*hours.toFixed(2)" The toFixed(2) keeps the integer to two decimal places. |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

