Skip to content
Related Articles
Open in App
Not now

Related Articles

How to create a Date Input using jQuery Mobile ?

Improve Article
Save Article
  • Last Updated : 14 Dec, 2020
Improve Article
Save Article

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 date input area 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 Date Input area using jQuery Mobile. To create a Date Input are, we use type=”date” attribute. The data-clear-btn=”true” attribute is used to clear the date.


<!DOCTYPE html>
    <link rel="stylesheet" href=
    <script src=
    <script src=
            Design a Date Input using jQuery Mobile
        <form style="width: 50%;">
            <label for="dateInput1">Date Input Area:</label>
            <input type="date" data-clear-btn="false" 
                name="dateInput1" id="dateInput1" value="">
            <label for="dateInput2">
                Date Input Area with clear text Button:
            <input type="date" data-clear-btn="true" 
                name="dateInput2" id="dateInput2" value="">


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!