IMG-LOGO

Issue with hyperlinks when including JQuery mobile script in html page

andy - 23 Mar, 2016 3734 Views 0 Comment

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.

Related Articles

Become a jquery expert in just 10 minutes.

Completely new to JQuery script Don t worry you are not alone We have summarize a list of tips for newbie to learn JQuery faster The best way to strength your JQuery skills is by testing our tips directly in ...