Answer the question
In order to leave comments, you need to log in
How to match ordinal indexes of elements in jQuery?
It is necessary to make it so that when you click on the button, a block is shown, and the rest are hidden. I'm trying to match the ordinal index of the button and the block, but only the first one works - 0 is equal to 0, and then the ordinal number of the button increases, and the block has a constant -1 (displayed to the console). How to solve the problem?
Example
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question