Tammu
asked on
jQuery accordion click in mobile devices not working
I am trying to use the code below to provide accordion effect. But on the mobile devices it does not work. here is my code
HTML
When I click on each letter nothing happens. what am I doing wrong?
Thanks
<script type="text/javascript">
$(document).ready(function(){
$("#accordion h2").click(function(e){
$(this).find('.pane').slideToggle();
});
});
</script>
HTML
<div class="accordion-container">
<div id="accordion">
<h2 class="current">A</h2>
<div class="pane">Content A</div>
<h2>B</h2>
<div class="pane">Content B</div>
<h2>C</h2>
<div class="pane">Content B</div>
<h2>D</h2>
<div class="pane">Content B</div>
<h2>E</h2>
<div class="pane">Content E</div>
</div>
</div>
When I click on each letter nothing happens. what am I doing wrong?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER