Skip to content
Related Articles

Related Articles

How to create a Placeholder Input using jQuery Mobile ?

View Discussion
Improve Article
Save Article
  • Last Updated : 17 Dec, 2020

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 creating a Placeholder Input using jQuery Mobile.

Approach: Add jQuery Mobile scripts needed for your project.

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

Example: We will create a Placeholder Input Area using jQuery Mobile. We use placeholder=”value” attribute to set the value of placeholder.


<!DOCTYPE html>
    <link rel="stylesheet" href=
    <script src=
    <script src=
            Design a Placeholder Input using jQuery Mobile
        <form style="width: 50%;">
            <label for="EmailInput1">
                Email Input Area:
            <input type="email" data-clear-btn="false" 
                name="EmailInput1" id="EmailInput1" 
                value="" placeholder="Enter Email...">
            <label for="EmailInput2">
                Email Input Area with clear Button
            <input type="email" data-clear-btn="true" 
                name="EmailInput2" id="EmailInput2" 
                value="" placeholder="Enter Email...">
            <label for="password-1">
                Password Input Area:
            <input type="password" data-clear-btn="false"
                name="password-1" id="password-1" 
                value="" placeholder="Enter Password...">
            <label for="password-2">
                Password Input Area with clear Button:
            <input type="password" data-clear-btn="true"
                name="password-2" id="password-2" 
                value="" placeholder="Enter Password...">


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!