Skip to content
Related Articles

Related Articles

jQuery Mobile Textinput disable() Method

Improve Article
Save Article
Like Article
  • Last Updated : 23 Dec, 2021

jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. 

In this article, we will be using the jQuery Mobile Textinput disable() method to disable the textinput like textbox, textarea, etc. It does not accept any parameter.




CDN Link: First, add jQuery Mobile scripts needed for your project.

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

Example: This example describes the uses of the jQuery Mobile Textinput disable() method.


<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href=
    <script src="//"></script>
    <script src=
        $(function () {
            $("#btn").on('click', function () {
        <div data-role="page" id="page1">
            <div data-role="header">
                    jQuery Mobile Textinput disable() Method
            <div role="main" class="ui-content">
                <label for="GFG">Text Input:</label>
                <input type="text" name="name" id="GFG"
            <input type="button" id="btn"
                style="width: 250px;"



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!