Skip to content
Related Articles

Related Articles

jQuery UI Checkboxradio widget() Method

View Discussion
Improve Article
Save Article
  • Last Updated : 14 May, 2022
View Discussion
Improve Article
Save Article

jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you’re building highly interactive web applications, or you just need to add a date picker to a form control, jQuery UI is a perfect choice.

In this article, we will be using the jQueryUI Checkboxradio widget() method. This method returns the instance of the current jQueryUI widget element. This method does not accept any parameters.



CDN Link: First, add jQuery UI CDN links inside the head section that is needed for your project.

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

Example: In this example, we will describe how to use the Checkboxradio widget() method.


<!DOCTYPE html>
    <link rel="stylesheet" href=
    <script src=
    <script src=
        <h1 style="color:green;">
        <h3>jQuery UI Checkboxradio widget() Method</h3>
        <label for="radio1">Button 1</label>
        <input type="radio" name="radio" id="radio1" class='radio'>
        <label for="radio2">Button 2</label>
        <input type="radio" name="radio" id="radio2" class='radio'>
        <label for="radio3">Button 3</label>
        <input type="radio" name="radio" id="radio3" class='radio'>
        <input type="button" id="btn" value="CheckboxRadio Widget" 
            $(document).ready(function () {
                $("#btn").on('click', function() {
                    var gfg = $(".radio").checkboxradio("widget");




My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!