M
M
Mikle8882018-01-29 19:12:29
JavaScript
Mikle888, 2018-01-29 19:12:29

How to check in which block you clicked?

There is such a thing. Question block. When you click the correct answer, a block appears for the entire question. If the answer is correct, then "correct" appears, with incorrectly similarly. But the problem is that when you click on an answer in one question, the block correctly or incorrectly appears in both questions
5a6f47e1bcedf323049976.png
-
5a6f47e6793fd622980254.png
-
Looks like this
5a6f481242efb607214603.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jaroslaw Goszowski, 2018-01-29
@Mikle888

$(this).parent().find('.correct') .addClass('visible');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question