Published on: 23 Mar, 2016

Issue with hyperlinks when including JQuery mobile script in html page

Tumblr Digg Google Plus

In JQuery mobile script, links will be treated to use Ajax when possible. That's why you may find out that your links on your page suddenly do not work when you place a JQuery mobile script into your html page. To fix this issue you will need to include a data attribute rel="external" or data-ajax="false" for each link in your html page.

You can easily include this script to solve this issue.

	$("a").attr("data-ajax", false);
	// or alternatively you can use this as well.
	$("a").attr("rel", "external");


There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.