Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQuery Mobile Textinput enable() Method

  • 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 enable() method to enable 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 jQuery Mobile Textinput enable() 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 enable() 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!