did you get an error if no value was given?
because it seems like your parsing an empty string into an int

and it looks like your value after the first calculation will always be the
original value.
because you never set pris except when the page loaded

Reply via email to