{"id":226,"date":"2011-08-21T07:23:50","date_gmt":"2011-08-21T12:23:50","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=226"},"modified":"2011-08-21T07:23:50","modified_gmt":"2011-08-21T12:23:50","slug":"creating-jquery-ui-tabs","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2011\/08\/21\/creating-jquery-ui-tabs\/","title":{"rendered":"Creating jQuery UI Tabs"},"content":{"rendered":"<p><a title=\"jQuery docs\" href=\"http:\/\/docs.jquery.com\/UI\/Tabs\">jQuery UI Tabs<\/a> are an easy way to make tabs in your web applications or web sites easily with less code. Consider the following tab structure:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;div id=&quot;tabgroup&quot;&gt;\r\n\t&lt;ul&gt;\r\n\t\t&lt;li&gt;&lt;a href=&quot;#tab1&quot;&gt;Tab 1&lt;\/a&gt;&lt;\/li&gt;\r\n\t\t&lt;li&gt;&lt;a href=&quot;#tab2&quot;&gt;Tab 2&lt;\/a&gt;&lt;\/li&gt;\r\n\t\t&lt;li&gt;&lt;a href=&quot;#tab3&quot;&gt;More Tabs&lt;\/a&gt;&lt;\/li&gt;\r\n\t&lt;\/ul&gt;\r\n\t&lt;div id=&quot;tab1&quot;&gt;Hello&lt;\/div&gt;\r\n\t&lt;div id=&quot;tab2&quot;&gt;World&lt;\/div&gt;\r\n\t&lt;div id=&quot;tab3&quot;&gt;from jQuery UI Tabs&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>To turn this into a fully featured functioning tab system, all one has to execute in the &lt;head&gt; is this provided you have included jQuery and jQuery UI with any CSS in your &lt;head&gt; (default CSS can be included like such: <strong>&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text\/css&#8221; href=&#8221;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.9\/themes\/ui-lightness\/jquery-ui.css&#8221; \/&gt;<\/strong>):<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\njQuery(document).ready(function() {\r\n\tjQuery(&quot;#tabgroup&quot;).tabs();\r\n});\r\n<\/pre>\n<p><a href=\"http:\/\/www.compdigitec.com\/labs\/wp-content\/uploads\/2011\/08\/jquerytabs.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-227\" title=\"jQuery UI Tabs\" src=\"http:\/\/www.compdigitec.com\/labs\/wp-content\/uploads\/2011\/08\/jquerytabs.png\" alt=\"\" width=\"356\" height=\"144\" \/><\/a><\/p>\n<p>This tab structure also degrades reasonably without JavaScript &#8211; one is able to view the contents of all of the tabs and the anchor links are usable &#8211; unlike some other tab techniques.<\/p>","protected":false},"excerpt":{"rendered":"<p>jQuery UI Tabs are an easy way to make tabs in your web applications or web sites easily with less code. Consider the following tab structure: To turn this into a fully featured functioning tab system, all one has to execute in the &lt;head&gt; is this provided you have included jQuery and jQuery UI with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[757,701,755,756,758],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/226"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}