Skip to content
Related Articles

Related Articles

jQuery Mobile Textinput Widget preventFocusZoom Option

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 31 May, 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 widget preventFocusZoom option to prevent the device from focusing on the input element when the element receives the focus.


$( ".selector" ).textinput({
    preventFocusZoom: boolean

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

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




<!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 src=
        $(document).ready(function () {
                preventFocusZoom: true
    <div data-role="page" id="page1">
        <div data-role="header">
            <h3>jQuery Mobile Textinput Widget preventFocusZoom Option</h3>
            <div role="main" class="ui-content" style="width: 50%;">
                <label for="GFG">Enter Text:</label>
                <input type="text" name="Geeks" id="GFG" value="">


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!