Why I cannot go to a specific link with my sign out? I’m using jquery’s ui tab on this. And solution or suggestion on this situation? or it is not possible?
JS CODE: $('#tabs').tabs();
<div id="tabs" class="login-tabs">
<ul>
<li><a href="#Home">Home</a></li>
<li><a href="#Profile"></a></li>
<li><a href="#Messages">Messages</a></li>
<li><a href="#Notifications">Notifications</a></li>
<li><a href="#Find">Find Friends</a></li>
<li><a href="destroy.php">Sign out</a></li>
</ul>
<div id="Home">
</div>
<div id="Profile">
</div>
<div id="Messages">
</div>
<div id="Notifications">
</div>
<div id="Find">
</div>
</div>
You can give the anchors real href attributes, like this:
This will by default try and load those pages via AJAX into the corresponding tab. To prevent this behavior, just change the window.location yourself in the select event , like this:
for one link alone, you can try this…