Closed skey08 closed 9 years ago
I expect you can use a common class, shared across all the relevant elements which can be used by your css selector.
I don't want them all off or on at the same time though, as the current one turns off I am turning the next one on:
inside your click handler, use $(this).parent().next()
to reference the next form in your HTML
right now I have this function that is turning one css selector off and turning another one on
the problem is I have to repeat it 10 times to apply it to each button. Basically I need a function that makes each of those 3 numbers go up by one each time a button is clicked.