Monday, September 28, 2009

[jQuery] Re: keepp getting NaN vlue

runrunforest ha scritto:
> Hi, I'm making a calculator for freight customer
>
> It seems I'm on the right path. But there is two bugs i need help.
>
> The TOTAL TO PAY value always seem to appear as NaN at first instead
> of default 30000.
>
> And the function of TOTAL TO PAY only work after checkbox is checkd, I
> need it work regarding to changing of input value not just checkbox.
>

I didn't chek all of your code, but remember:

$('#distance').val();

returns a string, not an int.

Bye

--
gianiaz.net - web solutions
via piedo, 58 - 23020 tresivio (so) - italy
+39 347 7196482

No comments: