Skip to content
Related Articles
Open in App
Not now

Related Articles

jQWidgets jqxInput searchMode Property

Improve Article
Save Article
  • Last Updated : 01 Sep, 2021
Improve Article
Save 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 jqxInput is used to represent a jQuery input widget that contains auto-complete features

The searchMode property is used to set or return the search mode. This property is used when a user types into the input text and tries to find the searched item using the entered text and the selected search mode. It accepts String type value and its default value is ‘default’.

The possible values of searchMode property are as follows.

  • ‘none’
  • ‘contains’
  • ‘containsignorecase’
  • ‘equals’
  • ‘equalsignorecase’
  • ‘startswithignorecase’
  • ‘startswith’
  • ‘endswithignorecase’
  • ‘endswith’



Set the searchMode property.

$('selector').jqxInput({ searchMode: String });

Return the searchMode property.

var searchMode = $('selector').jqxInput('searchMode');

Linked Files: Download jQWidgets from the 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-1.11.1.min.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqx-all.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxinput.js”></script>

The below example illustrates the jqxInput searchMode property in jQWidgets.



<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href=
        "jqwidgets/styles/jqx.base.css" type="text/css" />
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
<body class='default'>
        <h1 style="color: green;">
            jQWidgets jqxInput searchMode Property
        <label for="css">Enter Text: </label>
        <input type="text" id="GFG" />
    <script type="text/javascript">
        $(document).ready(function() {
            var data = [
                "Computer Science",
                "C Programming",
                "C++ Programming",
                "Java Programming",
                "Python Programming",
                source: data,
                placeHolder: "Enter Subject...",
                searchMode: 'startswith'



My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!