Share on Google+Share on Google+

jQuery To callback tabs

In this JQuery tutorial we will develop a program to calling function on Tab

jQuery To callback tabs


In this JQuery tutorial we will develop a program  to calling function on Tab. You will learn how to use jQuery to create callback tabs.

This example on jQuery callback tabs can be used in your programming. You can download the code example of jQuery callback tabs and add it in your project as per your requirement.

Let's make the callback tabs.

Steps to develop the simple tabs .

Step 1:



Create a new file (callbackTab.html) and add the following code into it:



<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">


<script src="script/jquery-" type="text/javascript"></script>
<script src="script/jquery.tabs.pack.js" type="text/javascript"></script>
<script type="text/javascript">
function divHide(){
$(function() {

onClick: function() {




function divHide()


<link rel="stylesheet" href="style/tab.css" type="text/css" media="print, projection, screen">


<h2>Callback Tab</h2>
<table border=0 width="100">
<div id="div-1">
<li><a href="#T-1"><span>One</span></a></li>
<li><a href="#T-2"><span>Two</span></a></li>
<li><a href="#T-3"><span>Three</span></a></li>

<div id="T-1">

Tab Content 1a<br>
Tab Content 1b<br>
Tab Content 1c<br>
Tab Content 1d<br>

<div id="T-2">
Tab Content 2 a<br>
Tab Content 2 b<br>
Tab Content 2 c<br>
Tab Content 2 d<br>
<div id="T-3">
Tab Content 3a<br>
Tab Content 3b<br>
Tab Content 3c<br>
Tab Content 3d<br>


<div id="dispfunc" style="display:none;border:1px solid;width:300px;" onclick="divHide();">Click Here For Hide </div>



Program explanation:

The following code includes the jQuery JavaScript library file:

<script src="script/jquery-" type="text/javascript"></script>
<script src="script/jquery.history_remote.pack.js" type="text/javascript"></script>
<script src="script/jquery.tabs.pack.js" type="text/javascript"></script>

The Style Css library file

<link rel="stylesheet" href="style/tab.css" type="text/css" media="print, projection, screen">:

The Code


onClick: function() {


 This tabs() function  having onClick function.

div  "dispfunc" display the content click on the Tab.




Check online demo of the application

Learn from experts! Attend jQuery Training classes.


Posted on: September 8, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: jQuery To callback tabs   View All Comments

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
July 3, 2011

Gosh, I wish I would have had that infromaiton earlier!
November 14, 2011
jquery tabs

I need it. Thanks a lot