{"id":5917,"date":"2015-08-03T12:15:09","date_gmt":"2015-08-03T09:15:09","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=5917"},"modified":"2017-12-21T16:44:22","modified_gmt":"2017-12-21T14:44:22","slug":"jquery-tabs-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/","title":{"rendered":"jQuery Tabs example"},"content":{"rendered":"<p>[three_fourth]In a <a title=\"jQuery dialog example\" href=\"http:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-dialog-example\/\" target=\"_blank\">recent post<\/a>, we showed the Dialog component example from jQuery ui library and how it&#8217;s simple to integrate and use it in a web application.<br \/>\nIn this example, we will see another component from the same perfect library, it&#8217;s jQuery ui <a title=\"jQuery Tabs\" href=\"https:\/\/jqueryui.com\/tabs\/\" target=\"_blank\">Tabs<\/a>.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;qGGDqWnle19VavkM&#8217;]<\/p>\n<h3>Tabs! What is it?<\/h3>\n<p>Yes, like the browser tabs, we can integrate this feature in a web application using HTML, javascript and css code, we can find all needs in one library: <a title=\"jQuery Tabs\" href=\"https:\/\/jqueryui.com\/tabs\/\" target=\"_blank\">jQuery ui<\/a>.<\/p>\n<blockquote><p>A single content area with multiple panels, each associated with a header in a list.<br \/>\n<a title=\"jQuery ui Tabs\" href=\"https:\/\/jqueryui.com\/tabs\/\" target=\"_blank\">https:\/\/jqueryui.com\/tabs\/<\/a><\/p><\/blockquote>\n<h3>When and where<\/h3>\n<p>Assume you have an E-commerce website and you need to present your product details but you will not taking all the webpage area to do this job. So! Displaying your product details into tabs over a limited area is a very good idea. You can add a tab for general info, a tab for images, a tab for long description etc.<\/p>\n<figure id=\"attachment_3574\" aria-describedby=\"caption-attachment-3574\" style=\"width: 973px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/tabs1.jpg\"><img decoding=\"async\" class=\"size-full wp-image-3574\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/tabs1.jpg\" alt=\"Tabs example\" width=\"973\" height=\"367\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/tabs1.jpg 973w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/tabs1-300x113.jpg 300w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/a><figcaption id=\"caption-attachment-3574\" class=\"wp-caption-text\">Tabs example<\/figcaption><\/figure>\n<h2>1. Basic tabs example<\/h2>\n<p>We will use:<\/p>\n<ul>\n<li>jQuery &#8211; v1.10.2<\/li>\n<li>jQuery UI &#8211; v1.11.3<\/li>\n<\/ul>\n<p>Create an HTML file called <code>index.html<\/code> and put the following code:<\/p>\n<p><em>index.html<\/em><\/p>\n<pre class=\"brush: xml; highlight: [6,7,8]; title: ; notranslate\" title=\"\">\r\n&lt;!doctype html&gt;\r\n&lt;html lang=&quot;en&quot;&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=&quot;utf-8&quot;&gt;\r\n&lt;title&gt;jQuery Tabs Example - Basic!&lt;\/title&gt;\r\n  &lt;link href=&quot;jquery-ui.css&quot; rel=&quot;stylesheet&quot;&gt;\r\n  &lt;script src=&quot;jquery.js&quot;&gt;&lt;\/script&gt;\r\n  &lt;script src=&quot;jquery-ui.js&quot;&gt;&lt;\/script&gt;\r\n  &lt;!-- todo: add tabs constructor --&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;!-- todo: add tabs html code --&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>Between the <code>body<\/code> tags, we will add an HTML list (<code>ul<\/code>) each record of this list should be an anchor with <code>href<\/code> value that referenced for an <code>id<\/code> of a <code>div<\/code>.<\/p>\n<p>The fragment identifiers (#tab-1, #tab-2, #tab-3) in the href values are the main action for the navigation between tabs. Each element with a given ID <code>id=\"tabs-1\"<\/code> corresponds to a fragment identifier. When you click on this anchor, jQuery Tabs will show the element having the same ID value as href and without the &#8216;#&#8217; symbol. By this way the links will be work fine even if we have JavaScript disabled.<\/p>\n<p>Let&#8217;s see the snippet of code:<\/p>\n<pre class=\"brush: xml; highlight: [3,7]; title: ; notranslate\" title=\"\">\r\n&lt;div id=&quot;tabs&quot;&gt;\r\n  &lt;ul&gt;\r\n    &lt;li&gt;&lt;a href=&quot;#tabs-1&quot;&gt;Tab 1&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href=&quot;#tabs-2&quot;&gt;Tab 2&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href=&quot;#tabs-3&quot;&gt;Tab 3&lt;\/a&gt;&lt;\/li&gt;\r\n  &lt;\/ul&gt;\r\n  &lt;div id=&quot;tabs-1&quot;&gt;\r\n    &lt;p&gt;This is Tab 1&lt;\/p&gt;\r\n  &lt;\/div&gt;\r\n  &lt;div id=&quot;tabs-2&quot;&gt;\r\n    &lt;p&gt;This is Tab 2&lt;\/p&gt;  &lt;\/div&gt;\r\n  &lt;div id=&quot;tabs-3&quot;&gt;\r\n    &lt;p&gt;This is Tab 3&lt;\/p&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>Finally, to let this work we must apply the <code>tabs()<\/code> function on the main div with <code>id=\"tabs\"<\/code>.<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;script&gt;\r\n  $(function() {\r\n    $( &quot;#tabs&quot; ).tabs();\r\n  });\r\n&lt;\/script&gt;\r\n<\/pre>\n<p>The result of below is:<\/p>\n<figure id=\"attachment_4508\" aria-describedby=\"caption-attachment-4508\" style=\"width: 1008px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/jQuery-Tabs-Example-Basic-.png\"><img decoding=\"async\" class=\"size-full wp-image-4508\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/jQuery-Tabs-Example-Basic-.png\" alt=\"Basic Tabs Example\" width=\"1008\" height=\"173\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/jQuery-Tabs-Example-Basic-.png 1008w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/jQuery-Tabs-Example-Basic--300x51.png 300w\" sizes=\"(max-width: 1008px) 100vw, 1008px\" \/><\/a><figcaption id=\"caption-attachment-4508\" class=\"wp-caption-text\">Basic Tabs Example<\/figcaption><\/figure>\n<h2>2. Vertical tabs example<\/h2>\n<p>Since it is very used, this example shown how to make vertical tabs using jQuery ui tabs.<\/p>\n<p>We will continue from the first example with some changes, the trick is to override the default css of the library by the below:<\/p>\n<pre class=\"brush:css\">  .ui-tabs-vertical { width: 55em; }\r\n  .ui-tabs-vertical .ui-tabs-nav { padding: .2em .1em .2em .2em; float: left; width: 12em; }\r\n  .ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-bottom-width: 1px !important; border-right-width: 0 !important; margin: 0 -1px .2em 0; }\r\n  .ui-tabs-vertical .ui-tabs-nav li a { display:block; }\r\n  .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; }\r\n  .ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right; width: 40em;}\r\n<\/pre>\n<p>and we will use the jquery functions <code>addClass<\/code> and <code>removeClass<\/code> to do the job.<\/p>\n<pre class=\"brush:js\">  $(function() {\r\n    $( \"#tabs\" ).tabs().addClass( \"ui-tabs-vertical ui-helper-clearfix\" );\r\n    $( \"#tabs li\" ).removeClass( \"ui-corner-top\" ).addClass( \"ui-corner-left\" );\r\n  });\r\n<\/pre>\n<p>The result:<\/p>\n<figure id=\"attachment_4510\" aria-describedby=\"caption-attachment-4510\" style=\"width: 988px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/jQuery-Tabs-Example-Vertical.png\"><img decoding=\"async\" class=\"size-full wp-image-4510\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/jQuery-Tabs-Example-Vertical.png\" alt=\"Vertical tabs\" width=\"988\" height=\"154\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/jQuery-Tabs-Example-Vertical.png 988w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/05\/jQuery-Tabs-Example-Vertical-300x47.png 300w\" sizes=\"(max-width: 988px) 100vw, 988px\" \/><\/a><figcaption id=\"caption-attachment-4510\" class=\"wp-caption-text\">Vertical tabs<\/figcaption><\/figure>\n<h2>3. Ajax Tabs<\/h2>\n<p>It&#8217;s very simple to use ajax call in jQuery ui tabs, we need just to set the href value in the tab links for the target request and the library will fetch the content.<\/p>\n<pre class=\"brush:html; highlight:6\">\r\n<div id=\"tabs\">\r\n  <ul>\r\n    <li><a href=\"#tabs-1\">Tab 1<\/a><\/li>\r\n    <li><a href=\"#tabs-2\">Tab 2<\/a><\/li>\r\n    <li><a href=\"#tabs-3\">Tab 3<\/a><\/li>\r\n    <li><a href=\"ajax\/content.html\">Ajax Tab 4<\/a><\/li>\r\n  <\/ul>\r\n  <div id=\"tabs-1\">\r\n    <p>This is Tab 1<\/p>\r\n  <\/div>\r\n  <div id=\"tabs-2\">\r\n    <p>This is Tab 2<\/p>  <\/div>\r\n  <div id=\"tabs-3\">\r\n    <p>This is Tab 3<\/p>\r\n  <\/div>\r\n<\/div>\r\n<\/pre>\n<h3>Tip #1<\/h3>\n<p>As shown above, the tab that use an external ajax link haven&#8217;t a target container, and no needs to add <code>div id=\"tab-4\"<\/code>, jQuery tabs will take care about the rendering in the right place.<\/p>\n<h3>Tip #2<\/h3>\n<p>This example will not work properly if you run the HTML file directly without server, and jQuery will return an error in the browser when you click on the ajax tab <em>XMLHttpRequest cannot load file:\/\/\/C:\/WCG\/posts\/Apr-2015\/jQuery_Tabs_Example\/jQuery_Tabs_Example_Source_Code\/ajax\/content.html<\/em>. To prevent this error you can host the code on a local\/online server or install a web server plugin for browser for example <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/web-server-for-chrome\/ofhbbkphhbklhfoeikjpcbhemlocgigb\/\" target=\"_blank\">Web Server for Chrome<\/a>.<\/p>\n<h2>Conclusion<\/h2>\n<p>We shown above very simple examples about using tabs, one for displaying content in a same area and the second can be used as vertical menu in a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Single-page_application\" target=\"_blank\">SPA<\/a> for small websites. It will be easy to use jQuery instead of writing the same functionality from scratch.<\/p>\n<h3>Download the source code for jQuery Tabs<\/h3>\n<p>This was an example of jQuery Tabs.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here : <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/jQuery_Tabs_Example_Source_Code.zip\"><strong>jQuery_Tabs_Example_Source_Code<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In a recent post, we showed the Dialog component example from jQuery ui library and how it&#8217;s simple to integrate and use it in a web application. In this example, we will see another component from the same perfect library, it&#8217;s jQuery ui Tabs. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [ulp id=&#8217;qGGDqWnle19VavkM&#8217;] Tabs! &hellip;<\/p>\n","protected":false},"author":58,"featured_media":919,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-5917","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>jQuery Tabs example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"In a recent post, we showed the Dialog component example from jQuery ui library and how it&#039;s simple to integrate and use it in a web application. In this\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"jQuery Tabs example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"In a recent post, we showed the Dialog component example from jQuery ui library and how it&#039;s simple to integrate and use it in a web application. In this\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-03T09:15:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-21T14:44:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Rami Tayba\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rami Tayba\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/\"},\"author\":{\"name\":\"Rami Tayba\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/0e396cc2123832350fac098b7d861d29\"},\"headline\":\"jQuery Tabs example\",\"datePublished\":\"2015-08-03T09:15:09+00:00\",\"dateModified\":\"2017-12-21T14:44:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/\"},\"wordCount\":880,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\",\"articleSection\":[\"jQuery\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/\",\"name\":\"jQuery Tabs example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\",\"datePublished\":\"2015-08-03T09:15:09+00:00\",\"dateModified\":\"2017-12-21T14:44:22+00:00\",\"description\":\"In a recent post, we showed the Dialog component example from jQuery ui library and how it's simple to integrate and use it in a web application. In this\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"jQuery\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/jquery\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"jQuery Tabs example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/0e396cc2123832350fac098b7d861d29\",\"name\":\"Rami Tayba\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3a79461c791099d87bb3b8bc979f3a9e844f9f950d1a70efb24d5a8af4490ce1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3a79461c791099d87bb3b8bc979f3a9e844f9f950d1a70efb24d5a8af4490ce1?s=96&d=mm&r=g\",\"caption\":\"Rami Tayba\"},\"description\":\"Rami Tayba is a Software Engineer graduated from Lebanese University, he is experienced in web development and IT project management. During his experience, he was leading various teams and has been involved into many large projects from analysis and design to implementation.\",\"sameAs\":[\"http:\/\/ramitayba.tk\/\",\"http:\/\/www.linkedin.com\/pub\/rami-tayba\/34\/231\/415\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/rami-tayba\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"jQuery Tabs example - Web Code Geeks - 2026","description":"In a recent post, we showed the Dialog component example from jQuery ui library and how it's simple to integrate and use it in a web application. In this","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/","og_locale":"en_US","og_type":"article","og_title":"jQuery Tabs example - Web Code Geeks - 2026","og_description":"In a recent post, we showed the Dialog component example from jQuery ui library and how it's simple to integrate and use it in a web application. In this","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2015-08-03T09:15:09+00:00","article_modified_time":"2017-12-21T14:44:22+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","type":"image\/jpeg"}],"author":"Rami Tayba","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Rami Tayba","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/"},"author":{"name":"Rami Tayba","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/0e396cc2123832350fac098b7d861d29"},"headline":"jQuery Tabs example","datePublished":"2015-08-03T09:15:09+00:00","dateModified":"2017-12-21T14:44:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/"},"wordCount":880,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","articleSection":["jQuery"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/","name":"jQuery Tabs example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","datePublished":"2015-08-03T09:15:09+00:00","dateModified":"2017-12-21T14:44:22+00:00","description":"In a recent post, we showed the Dialog component example from jQuery ui library and how it's simple to integrate and use it in a web application. In this","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/jquery-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/javascript\/jquery\/jquery-tabs-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/"},{"@type":"ListItem","position":3,"name":"jQuery","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/jquery\/"},{"@type":"ListItem","position":4,"name":"jQuery Tabs example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/0e396cc2123832350fac098b7d861d29","name":"Rami Tayba","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3a79461c791099d87bb3b8bc979f3a9e844f9f950d1a70efb24d5a8af4490ce1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3a79461c791099d87bb3b8bc979f3a9e844f9f950d1a70efb24d5a8af4490ce1?s=96&d=mm&r=g","caption":"Rami Tayba"},"description":"Rami Tayba is a Software Engineer graduated from Lebanese University, he is experienced in web development and IT project management. During his experience, he was leading various teams and has been involved into many large projects from analysis and design to implementation.","sameAs":["http:\/\/ramitayba.tk\/","http:\/\/www.linkedin.com\/pub\/rami-tayba\/34\/231\/415"],"url":"https:\/\/www.webcodegeeks.com\/author\/rami-tayba\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/5917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/58"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=5917"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/5917\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/919"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=5917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=5917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=5917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}