Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQuery UI Checkboxradio label Option

  • Last Updated : 02 Dec, 2021

Checkboxradio Widget label Option is used to show the label of an element using UI. When it is not specified, then the HTML content of the associated <label> element is used.


$( ".selector" ).checkboxradio({
  label: "custom label"

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

<link href = “” rel = “stylesheet”>

<script src = “”></script>

<script src = “”></script>



<!DOCTYPE html>
    <link href=
    <script src=
    <script src=
        <h1 style="color:green">GeeksforGeeks</h1>
        <h3>Radio Button Example</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'>
        <h3>Checkbox Example</h3>
        <label for="checkbox1">Checkbox 1</label>
        <input type="checkbox" name="checkbox1" 
            id="checkbox1" class='checkbox'>
        <label for="checkbox2">checkbox 2</label>
        <input type="checkbox" name="checkbox2" 
            id="checkbox2" class='checkbox'>
            $(document).ready(function () {
                $(".radio, .checkbox").checkboxradio({
                    label: "custom label"


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!