Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 558169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:06:12+00:00 2026-05-13T12:06:12+00:00

I am trying to add links to skip to step 4 on my jQuery

  • 0

I am trying to add links to skip to step 4 on my jQuery UI tabs. Can anyone see why this is not working?

<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.7.custom.min.js"></script>
<script type="text/javascript">
$(function() {

            var $tabs = $('#tabs').tabs();

            $(".ui-tabs-panel").each(function(i){

              var totalSize = $(".ui-tabs-panel").size() - 1;

              if (i != totalSize) {
                  next = i + 2;
                  $(this).append("<a href='#' class='next-tab mover' rel='" + next + "'><span>Next Page &#187;</span></a>");
              }

              if (i != 0) {
                  prev = i;
                  $(this).append("<a href='#' class='prev-tab mover' rel='" + prev + "'><span>&#171; Prev Page</span></a>");
              }

            });

            $('.next-tab, .prev-tab').click(function() { 
                   $tabs.tabs('select', $(this).attr("rel"));
                   return false;
               });
        });
$(document).ready(function(){ 
var $tabs= $("#tabs").tabs(); 
$('.tofour').click(function() { // bind click event to link
    $tabs.tabs('select', 4); // switch to third tab
    return false;
});
});
    </script>

<div id="tabs">
  <ul>
    <li id="tabone"><a href="#fragment-1">one</a></li>
    <li id="tabtwo"><a href="#fragment-2">two</a></li>
    <li id="tabthree"><a href="#fragment-3">three</a></li>
    <li id="tabfour"><a href="#fragment-4">four</a></li>
  </ul>
  <div id="fragment-1" class="ui-tabs-panel">
    <p>Test content here</p>
    <div class="save-progress">You cansave your <br>
      progress at <a href="#tofour" class="tofour">step 4</a></div>
  </div>
  <div id="fragment-2" class="ui-tabs-panel ui-tabs-hide">
    <p>Test content here for secon tab</p>
    <div class="save-progress">You cansave your <br>
      progress at <a href="#tofour" class="tofour">step 4</a></div>
  </div>
  <div id="fragment-3" class="ui-tabs-panel ui-tabs-hide">
    <p>Test content here for 3rd tab</p>
    <div class="save-progress">You cansave your <br>
      progress at <a href="#tofour" class="tofour">step 4</a></div>
  </div>
  <div id="fragment-4" class="ui-tabs-panel ui-tabs-hide select-cats">
    <p>Test content for tab 4</p>
    <input type="image" src="/images/big-green-submit-btn_03.gif" class="submit-show-btn cat_button" value="Submit" id="catcustomcontentbutton" />
    <div class="clr"></div>
  </div>
</div>

Thanks in advance for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:06:13+00:00Added an answer on May 13, 2026 at 12:06 pm

    Tabs are indexed from 0, so you actually want:

    $('.tofour').click(function() { // bind click event to link
        $tabs.tabs('select', 3); // switch to fourth tab
        return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am trying to add a link besides the Edit | Delete links in wordpress
I'm trying to add some twitter funcionality to my website (php). I publish links
I've looked at quite a few links for people trying to add content /
I have a page that I am trying to dynamically add some links to.
Trying to add a box around a menu of links in Wordpress. So far
I am trying to remotely add links to the site top navigation bar. It
I'm trying to add embedded css in order to open all links in new
Okay so I am trying to add links to each of my photos in
I'm trying to add a current class to the following set of links based
I'm trying to find a way to add two links to each product page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.