Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to make an URL Input using jQuery Mobile ?

  • 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 an URL 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 URL Input Area using jQuery Mobile. We use type=”url” attribute to set the URL.


<!DOCTYPE html>
    <link rel="stylesheet" href=
    <script src=
    <script src=
            Design an URL Input using jQuery Mobile
        <form style="width: 50%;">
            <label for="URLInput1">
                URL Input Area:
            <input type="url" data-clear-btn="false" 
                name="URLInput1" id="URLInput1" 
                value="" placeholder="Enter URL...">
            <label for="URLInput2">
                URL Input Area with clear Button:
            <input type="url" data-clear-btn="true" 
                name="URLInput2" id="URLInput2" 
                value="" placeholder="Enter URL...">


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!