Skip to content
Related Articles
Open in App
Not now

Related Articles

How to create a Time Input using jQuery Mobile ?

Improve Article
Save Article
  • Last Updated : 16 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 Time 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 Time Input area using jQuery Mobile. We use type=”time” attribute to set the time in input field.


<!DOCTYPE html>
    <link rel="stylesheet" href=
    <script src=
    <script src=
            Design a Time Input using jQuery Mobile
        <form style="width: 50%;">
            <label for="timeInput1">Time Input Area:</label>
            <input type="time" data-clear-btn="false" 
                name="timeInput1" id="timeInput1" value="">
            <label for="timeInput2">
                Time Input Area with clear button:
            <input type="time" data-clear-btn="true" 
                name="timeInput2" id="timeInput1" value="">


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!