Skip to content
Related Articles

Related Articles

jQWidgets jqxTouch orientationChangeEnabled Property

Improve Article
Save Article
Like Article
  • Last Updated : 14 Nov, 2021

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 jqxTouch is used for identifying and triggering touch events such as ‘swipe’, ‘swipe left’, ‘swipe right’, ‘tap’, and ‘orientationchange’ on touch-enabled devices.

The orientationChangeEnabled property is used for indicating whether the orientationchange event is enabled or not for the specified jqxTouch widget. This property accepts two possible values that are true and false.


  • For setting the orientationChangeEnabled property:

    $('#jqxTouch').jqxTouch({orientationChangeEnabled: true});


  • For getting the orientationChangeEnabled property:

    var orientationChangeEnabled = $('#jqxTouch')

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/jqxtouch.js”></script>
<script type=”text/javascript” src=”scripts/jqx-all.js”></script>

Example: The below example illustrates the jQWidgets jqxTouch orientationChangeEnabled property. In the below example, the value for the orientationChangeEnabled property has been set to true.


<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
        <h1 style="color: green;">
            jQWidgets jqxTouch orientationChangeEnabled Property
        <div id="jqx_Touch">
            <div style="height: 100px; 
                      width: 350px;
                      color: black; 
                      border-radius: 10px;
                      background: green;">
                <b>Swipe, Swipe Left, Swipe Right and Tap</b>
        <input type="button" style="margin: 28px;"
         value="Value of the orientationChangeEnabled property"/>
        <div id="log"></div>
        <script type="text/javascript">
            $(document).ready(function () {
                    orientationChangeEnabled: true
                  'swipeleft', function () {
                    $("#log").html("Swiped left");
                  'swiperight', function () {
                    $("#log").html("Swiped right");
                  'tap', function () {
                  'swipe', function () {
                        width: 350
                    function () {
                        var orientationChangeEnabled_Value =



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!