M
M
Marguerite Ray2017-11-17 01:39:40
JavaScript
Marguerite Ray, 2017-11-17 01:39:40

Why doesn't JS work on iPhone in safari?

! function(i) {
    var o, n;
    i(".preview").on("click", function() {
        o = i(this).parents(".question"), n = o.find(".answer"),
            o.hasClass("active") ? (o.removeClass("active"),
                n.slideUp()) : (o.addClass("active"), n.stop(!0, !0).slideDown(),
                o.siblings(".active").removeClass("active").children(
                    ".answer").stop(!0, !0).slideUp())
    })
}(jQuery);


Hello))) tell me how to cure, there are no problems when I check on the same device in chrome, like a simple accordion, and here such a setup from a safari))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marguerite Ray, 2017-11-21
@mMorgan

In general, yes, the problem was in OSP, it was cured by reinstalling it, because I did not find any visible reasons for this behavior))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question