I have a pile of monthly payments, where each one is found in a select.
I'd like all of them to be disabled first except the first check, and that by enabling the first check, the second check might be available to be enabled, and if I disable the first check, the second check is unavailable again (disable) to be enabled, and so on.
In other words, I can only select a checkbox if the previous chekbox is selected
I would like to do this with pure jquery or php or with other suggestions.
<input type="checkbox" > Janeiro
<input type="checkbox" > Fevereiro
<input type="checkbox" > Março
<input type="checkbox" > Abril'