Published on: 23 March, 2016

Issue with hyperlinks when including JQuery mobile script in html page

Posted by andy | 1121 views 0 likes 0 favourites 0 comments
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");
Comments

There are no comments available.

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