Arun Paarthi
Arun Paarthi

Reputation: 643

How to remove the # (hash) from the URL in intra page linking?

In jquery mobile I m using

$('#somebutton').click(function () {
    $.mobile.changePage("#searchResult", "slide");
});

to change to another page. This #searchResult is getting added in the URL I don't want that to happen .... So how do I remove that from URL.

Thanks in advance.

Upvotes: 3

Views: 1710

Answers (1)

Leon
Leon

Reputation: 4532

try this:

$('#somebutton').click(function () {
    $.mobile.changePage("#searchResult", {changeHash:false});
});

from the JQM documentation

Upvotes: 4

Related Questions