S
S
Sergey Shilov2018-03-07 18:02:21
iPhone
Sergey Shilov, 2018-03-07 18:02:21

Iphone click event not working?

Hey! Faced such a problem for the first time. The button on the iPhone is not clickable, website: https://film.pmotion.ru/

js:

$('#reg-btn').click(function(e) {
        $('.form-signup').addClass('show');
        e.preventDefault;
    });


cursor: pointer; worth it, the handler is hung as click(function()), but the iphone simply refuses to accept this click.

I've been brainstorming for an hour now, please help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2018-03-07
@Sanasol

On phones it's called tap

L
lilandre, 2018-03-07
@lilandre

$('#reg-btn').touchstart(function(e) {
        $('.form-signup').addClass('show');
        e.preventDefault;
    });

touchstart - click event on iPhone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question