I am trying to implement wizard for my application. I am doing it with
For navigation purposes: I am using hidden input fields such as:
<input id="wizard_current_state" name="state" type="hidden" value = 1 />
<input id="wizard_previous_state" name="state" type="hidden" value = 1
So that when someone presses next, i can increment the current_state to
$('wizard_previous_state').value = previous =
current = $('wizard_current_state').value = previous + 1
But "previous + 1 " is evaluated as 1 + 1 = 11 (string concat).
How do i say that i want hidden value to be integer?