T
T
thehighhomie2015-11-10 14:32:40
Layout
thehighhomie, 2015-11-10 14:32:40

Bootstrap: Buttons not working on mobile devices?

I started to typeset on bootstrap and ran into this problem:
Buttons do not work when clicked on mobile devices, it doesn't matter if it's DIVs or buttons, it doesn't matter. Everything works well from the computer, it is pressed, not from mobile (I checked it on my huawei and on my wife's iphone 5s.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-11-10
@thehighhomie

Are they processed in JS? If yes, then add an event touchstart:

$(element).on('click touchstart', function () {
    // do something
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question