Compdigitec Labs

« | Home | »

Creating jQuery UI Tabs

By admin | August 21, 2011

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:

<div id="tabgroup">
		<li><a href="#tab1">Tab 1</a></li>
		<li><a href="#tab2">Tab 2</a></li>
		<li><a href="#tab3">More Tabs</a></li>
	<div id="tab1">Hello</div>
	<div id="tab2">World</div>
	<div id="tab3">from jQuery UI Tabs</div>

To turn this into a fully featured functioning tab system, all one has to execute in the <head> is this provided you have included jQuery and jQuery UI with any CSS in your <head> (default CSS can be included like such: <link rel=”stylesheet” type=”text/css” href=”” />):

jQuery(document).ready(function() {

This tab structure also degrades reasonably without JavaScript – one is able to view the contents of all of the tabs and the anchor links are usable – unlike some other tab techniques.

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: (X)HTML | 8 Comments »

8 Responses to “Creating jQuery UI Tabs”

  1. opensea nft Says:
    February 23rd, 2022 at 21:19

    … [Trackback]

    […] Read More on that Topic: […]

  2. ip stresser Says:
    March 24th, 2022 at 17:48

    … [Trackback]

    […] Find More Info here on that Topic: […]

  3. Says:
    March 29th, 2022 at 04:51

    … [Trackback]

    […] Information on that Topic: […]

  4. DevOps as a service providers Says:
    May 6th, 2022 at 23:56

    … [Trackback]

    […] Read More on that Topic: […]

  5. good cvv sites Says:
    June 7th, 2022 at 12:40

    … [Trackback]

    […] Here you can find 37325 more Info on that Topic: […]

  6. L’emprunt travaux dans le cadre d’un nouveau toit | Credit-Personnel.beLe prêt travaux pour un nouveau toit | Says:
    June 26th, 2022 at 07:51

    … [Trackback]

    […] Read More Information here to that Topic: […]

  7. nicotine pouches Says:
    July 15th, 2022 at 07:17

    … [Trackback]

    […] Find More to that Topic: […]

  8. salvias divinorum seeds for sale, Says:
    August 26th, 2022 at 11:36

    … [Trackback]

    […] Read More on to that Topic: […]