Note that there are some explanatory texts on larger screens.

plurals
  1. POAutomatically Calculate price jquery/javascript function for form
    primarykey
    data
    text
    <p>So basically I need to add to this form - <a href="http://jsfiddle.net/tSsvb/" rel="nofollow">http://jsfiddle.net/tSsvb/</a> automatically price calculation. For example the parameters are these - (The 3 bikes are only test, there may be like 100 or even 200). So basically -</p> <pre><code>Bike 1 - Price for 1 - 2 days in Season 1 - 5$ per day. Price for 1 - 2 days in Season 2 - 10$ per day. Price for 1 - 2 days in Season 3 - 20$ per day. Price for 3 - 7 days in Season 1 - 4$ per day. Price for 3 - 7 days in Season 2 - 7$ per day. Price for 3 - 7 days in Season 3 - 15$ per day. Price for 8+ days in Season 1 - 3$ per day. Price for 8+ days in Season 2 - 5$ per day. Price for 8+ days in Season 3 - 12$ per day. Bike 2 - Price for 1 - 2 days in Season 1 - 10$ per day. Price for 1 - 2 days in Season 2 - 20$ per day. Price for 1 - 2 days in Season 3 - 30$ per day. Price for 3 - 7 days in Season 1 - 7$ per day. Price for 3 - 7 days in Season 2 - 15$ per day. Price for 3 - 7 days in Season 3 - 25$ per day. Price for 8+ days in Season 1 - 5$ per day. Price for 8+ days in Season 2 - 12$ per day. Price for 8+ days in Season 3 - 22$ per day. Bike 3 - Price for 1 - 2 days in Season 1 - 3$ per day. Price for 1 - 2 days in Season 2 - 5$ per day. Price for 1 - 2 days in Season 3 - 10$ per day. Price for 3 - 7 days in Season 1 - 2$ per day. Price for 3 - 7 days in Season 2 - 3$ per day. Price for 3 - 7 days in Season 3 - 7$ per day. Price for 8+ days in Season 1 - 1$ per day. Price for 8+ days in Season 2 - 2$ per day. Price for 8+ days in Season 3 - 5$ per day. </code></pre> <p>And the season dates are - </p> <pre><code>Season 1: 1 January to 10 June and 21 September to 31 December Season 2: 11 June to 30 June and 1 September to 20 September Season 3: 1 July to 31 August </code></pre> <p>So let's do a test calculation. If I choose a date from 1st July to 25 September the calculation will be for bike 3 as following -</p> <p>62*5 + 20*2 + 5*1 = 310 + 40 + 5 = 355$</p> <p>And this sum should automatically add in text field "Price". If I change the dates, the price should automatically change too. Is there any easy way to create something like that? If you have any questions - ask, I will be happy to answer to them, so you can help me solve this question more easily.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload