Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7979921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:54:42+00:00 2026-06-04T09:54:42+00:00

the jQuery click event does not seem to be firing in mobile browsers. The

  • 0

the jQuery click event does not seem to be firing in mobile browsers.

The HTML is as follows:

<!-- This is the main menu -->
<ul class="menu">
   <li><a href="/home/">HOME</a></li>
   <li class="publications">PUBLICATIONS &amp; PROJECTS</li>
   <li><a href="/about/">ABOUT</a></li>
   <li><a href="/blog/">BLOG</a></li>
   <li><a href="/contact/">CONTACT</a></li>
 </ul>


 <!-- This is the sub-menu that is to be fired on click -->
 <div id="filter_wrapper">
   <ul id="portfolioFilter">
      <li><a href="/nutrition-related/">Nutrition related</a></li>
      <li><a href="/essays/">Essays and Nonfiction</a></li>
      <li><a href="/commissioned/">Commissioned works</a></li>
      <li><a href="/plays/">Plays and performance</a></li>
      <li><a href="/new-projects/">New Projects</a></li>
    </ul>
  </div>

This is the jQuery script for mobile:

$(document).ready(function(){
   $('.publications').click(function() {
       $('#filter_wrapper').show();
   });
 });

When I click the “publications” list item on a mobile browser nothing happens.

You can view the site here: http://www.ruthcrocker.com/

Not sure if there are jQuery mobile specific events.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T09:54:43+00:00Added an answer on June 4, 2026 at 9:54 am

    Raminson has a nice answer if you are already (or don’t mind) using jQuery Mobile. If you want a different solution, why not just modify your code as follows:

    change that LI you’re having trouble with to include an A tag and apply the class there instead of the LI

    <!-- This is the main menu -->
    <ul class="menu">
       <li><a href="/home/">HOME</a></li>
       <li><a href="#" class="publications">PUBLICATIONS &amp; PROJECTS</a></li>
       <li><a href="/about/">ABOUT</a></li>
       <li><a href="/blog/">BLOG</a></li>
       <li><a href="/contact/">CONTACT</a></li>
     </ul>
    

    And your javascript/jquery code… return false to stop bubbling.

    $(document).ready(function(){
       $('.publications').click(function() {
           $('#filter_wrapper').show();
           return false;
       });
     });
    

    This should work for what you are trying to do.

    Also, I noticed your site opens the other links in new tabs/windows, is that intentional?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using class name I am firing a click event in jquery. Class names are
If I have a jQuery .click() event firing for both body and a div,
Suppose I have this jQuery code. $(document).delegate('a[title]', 'click', function(event) { var txt = //
When using .animate() while changing top / left , the click event does not
I want to bind a click event to every <p> but it does not
I am using jquery mobile datepicker, i need to capture the calendar click event,
my form validation does not firing...if i try to submit this form without entering
I have this code: <span id=Santiago4>Santiago</span> <br>more html code here<br> <span id=Santiago4>Santiago</span> <script> jQuery(#Santiago4).click(function()
Using jquery, I currently append html to a div on a click event. The
How do you redefine this in a jQuery click event handler? I read a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.