I
I
Ivan Fotiev2015-11-20 00:10:44
JavaScript
Ivan Fotiev, 2015-11-20 00:10:44

Why don't Safari and Firefox add a class to the label?

Hello. There is a set of label and input, if input cheked a class is added to the label. Everything works in chrome and opera, but not in safari and mozilla.
This is how I check the input and add the class

$(".color_f .ch_input:checked").parent().addClass("active");

Why does it work in some browsers and not in others?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question