Open In App
Related Articles

jQuery UI Tabs option() Method

Improve Article
Save Article
Like Article

jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. jQuery UI tabs widget helps us to put some content in different tabs and allow us to switch between them. In this article, we will see how to use the option method in jQuery UI slider.
The option 
method is used to get an object for the particular current slider option in jQuery UI.


var a = $( ".selector" ).tabs("option");

Parameters: This method does not accept any parameter.

Approach: First, add jQuery UI scripts needed for your project.

<link href = “” rel = “stylesheet”>
<script src = “”></script>
<script src = “”></script>



<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link href=
    <script src=
    <script src=
        $(function () {
            var a = $("#gfg").tabs("option");
    <h3>jQuery UI tabs option method</h3>
    <div id="gfg">
            <li><a href="#gfg1">Tab 1</a></li>
            <li><a href="#gfg2">Tab 2</a></li>
            <li><a href="#gfg3">Tab 3</a></li>
        <div id="gfg1">
                tab Number -1
        <div id="gfg2">
                tab Number -2
        <div id="gfg3">
                tab Number -3


Last Updated : 08 Feb, 2021
Like Article
Save Article
Similar Reads
Related Tutorials