Open In App
Related Articles

jQWidgets jqxKnob allowValueChangeOnClick Property

Improve Article
Save Article
Like Article

jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxKnob is used for representing a jQuery plugin having a round shape and displaying a draggable indicator within a range of the specified values. This API can also be used in a table or matrix for showing the relative value of a field in a range of values in the specified data region.

The allowValueChangeOnClick property is used for setting or getting whether the value of the specified jqxKnob can be changed on click or not.


  • For setting the allowValueChangeOnClick property:

    $('#jqxKnob').jqxKnob({allowValueChangeOnClick: true });

  • For getting the allowValueChangeOnClick property:

    var allowValueChangeOnClick = 

Linked Files: Download jQWidgets from the given link. In the HTML file, locate the script files in the downloaded folder.

<link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”scripts/jquery.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxbuttons.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxdraw.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxknob.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxnumberinput.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqx-all.js”></script>

Example: The below example illustrates the jqxKnob allowValueChangeOnClick property in jQWidgets.


<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet"
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
        <h1 style="color:green;">
            jQWidgets jqxKnob allowValueChangeOnClick Property
        <div id='jqx_Knob'>
        <input type="button" style="margin: 65px;" 
            value="Value of the allowValueChangeOnClick property"/>
        <div id="log"></div>
        <script type="text/javascript">
            $(document).ready(function () {
                    value: 5,
                    min: 0,
                    max: 50,
                    startAngle: 0,
                    endAngle: 360,
                    snapToStep: true,
                    allowValueChangeOnClick: true,
                    marks: {
                        colorRemaining: { color: 'red' },
                        colorProgress: { color: 'green' },
                        offset: '70%',
                        thickness: 5,
                        size: '4%'
                    labels: {
                        offset: '85%',
                        step: 5
                    progressBar: {
                        style: { fill: 'yellow', 
                                 stroke: 'black' },
                        size: '8%',
                        offset: '61%',
                        background: { fill: 'black' }
                    pointer: { type: 'arrow', 
                              style: { fill: 'green' }, 
                              size: '68%', 
                              offset: '29%', 
                              thickness: 15 }
                    width: 300,
                    theme: 'energyblue'
                .jqxButton().click(function () {
                    var value_of_allowValueChangeOnClick 
                        = $('#jqx_Knob').jqxKnob(



Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 28 Nov, 2021
Like Article
Save Article
Similar Reads
Related Tutorials