It is impossible to use if properly, or the error is completely different.
The script considers the amount of services ordered:
The day and level is
#daysfrom<select>'s#daysand#lvl. The amount is written to the variableup.On the calendar, select the numbers for advertising, are recorded in the
<input>#altField. It also calculates the number of days that is written to thereklamavariable.
So I put in all the code to see how it works. http://jsfiddle.net/8o28p0hy choose level 1 and days 2 for example. should calculate 0.6, but counts 1.2, but when the value appears in the advertising, even when clicked on the input, the amount getting right - 0.6
for clarity, input advertising considers comma-separated values with a space.
if (c.days)- PashaPash ♦