Skip to content
Related Articles

Related Articles

jQuery Mobile Flipswitch classes Option

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 20 Dec, 2021

jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. 

In this article, we will be using the jQuery Mobile Flipswitch classes option to specify additional classes to add to the widget elements.


$( ".selector" ).flipswitch({
  classes: {
    "ui-flipswitch": "highlight"

Parameters: It accepts an object type value that specifies the additional classes to add to the widget elements.


CDN Link: First, add jQuery Mobile scripts needed for your project.

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

Example: This example describes the jQuery Mobile Flipswitch classes option.


<!doctype html>
<html lang="en">
    <link rel="stylesheet" href=
    <script src=
    <script src=
        .Geeks {
            width: 100px;
            height: 30px;
            border-radius: 20px;
        $(document).ready(function () {
                classes: {
                    "ui-flipswitch": "Geeks"
    <div data-role="page">
        <div data-role="header">
            <h3>jQuery Mobile Flipswitch classes Option</h3>
        <div class="ui-field-contain">
                <div data-role="fieldcontain">
                    <label for="GFG">
                        Flipswitch Checkbox:
                    <input type="checkbox" id="GFG" 



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!