Bootstrap data-toggle not working on mobile

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Bootstrap data-toggle not working on mobile



I am trying to accomplish a data-toggle similar as the code sample when run on a desktop browser.



The problem of this code is that it does not run on mobile. example: Samsung(s6, s7) and Apple(Iphone 6s and 7s)


<div class="row">
<div class="faq">
<div class="container">
<div class="col-md-12">
<h1>FREQUENTLY ASKED QUESTIONS</h1>
</div>
<table class="table">
<thead>
<th>General</th>
</thead>

<tbody>
<tr data-toggle="collapse" data-target="#faq6" class="clickable faq-header">
<td>What are your hours of operation?
</td>
</tr>
<tr>
<td colspan="3">
<div id="faq6" class="collapse">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</div>
</td>
</tr>

<tr data-toggle="collapse" data-target="#faq7" class="clickable faq-header">
<td>What is the minimum storage period?
</td>
</tr>
<tr>
<td colspan="3">
<div id="faq7" class="collapse">
You can store as short as three months. But the longer you store the more money you will save!
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>



I expect it to be just as the same as the browser where is when you click a question it will trigger and show the corresponding answer.



The actual result I currently get is that it does not respond to any touch/tap. my menu dropdown works and etc but the data-toggles seems to be not responding.



I have tried these answers:
The data-toggle attributes in Twitter Bootstrap /
Bootstrap3 accordion table not working on IOS mobile /
Bootstrap data-toggle not working in Safari /
but none of them apparently seems to work for me





Create a jsfiddle with your effort
– yaylitzis
Dec 11 '17 at 8:58





Possible duplicate of Bootstrap data-toggle not working in Safari
– Alex R
22 mins ago




1 Answer
1



Try adding href="#" to the <a tag, which is actually not shown in your question. That solved it for me.


href="#"


<a






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard