Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

( input type = date ) display calender when clicking on box

Tags:

html

jquery

css

I am using <input type="date" name="bday"> and it displays calender when I click on right side of box as follows..

enter image description here

Now I want to display calender when I click on any part of box..What should I code to achieve that..

enter image description here

like image 226
Pawan Avatar asked Sep 25 '14 14:09

Pawan


1 Answers

How about this? It works on mine.

<style type="text/css">
    input[type="date"]::-webkit-calendar-picker-indicator {
        background: transparent;
        bottom: 0;
        color: transparent;
        cursor: pointer;
        height: auto;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: auto;
    }
</style>
<input type="date">
like image 193
Carljul Avatar answered Sep 22 '22 19:09

Carljul