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 7870603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:40:00+00:00 2026-06-03T01:40:00+00:00

Using jQuery Mobile I would like to disable the ajax call on links within

  • 0

Using jQuery Mobile I would like to disable the ajax call on links within a specific part of the DOM.

I do not want to put a

data-ajax = false

every time I don’t want to use the jquerymobile ajax.

For example, any link that is a child of ‘content’:

<div class="content">
    <a href="http://externalwebsite.com">External Link</a>
</div>

I would like to add the ‘data-ajax = false’ onto every link that is a child of ‘content’

Is there a way to do this with jquery?

  • 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-03T01:40:01+00:00Added an answer on June 3, 2026 at 1:40 am

    If you want to disable the ajax link behaviour from an anchor tag, you can put rel=external in the link and the link will load without ajax and your url will then be usual.

    http://jquerymobile.com/demos/1.0a4.1/#docs/pages/docs-navmodel.html

    <a href="User/somepage" rel="external" />I wont be using ajax for navigation</a>
    

    If you want to do this in jQuery for some a tags inside content div, you may try like this

    $(function(){
      $(".content a").each(function(){
        $(this).attr("rel","external");
      });
    });
    

    Here is a sample http://jsfiddle.net/4WEBk/3/

    The more Simplified version. (Thanks to tandu for pointing )

    $(function(){
      $(".content a").attr("rel","external");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a mobile-friendly website using jQuery Mobile but would like to do
I am using jquery mobile. I would like to navigate from one page to
I'm creating an iPad app using Jquery Mobile, and would like to create a
Ok I'm using the jQuery Mobile framework and I would like to be able
I would like to append some code to a page using jQuery/jQuery mobile, but
I'm using JQuery-Mobile. On specific child page loads, I want to perform one JavaScript
I'm working on a mobile app using jQuery Mobile and I would like to
I'm building a mobile application using jQuery Mobile and I would like to implement
In my mobile app, using jQuery Mobile... I would like to make a simple
i would like to load 3 images in a canvas. I'm using jquery mobile

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.