You can block the Arrow in the DATE field

3

Would there be any way to block this little piece there?

    
asked by anonymous 29.06.2015 / 23:32

1 answer

4

You're looking for webkit-inner-spin-button . You can even disable Calendar Picker if you want. About using ::placeholders to be supported, take a look here: link

dateInput.addEventListener('keydown', function(event) {
    if (event.keyIdentifier == "Down") {
        event.preventDefault()
    }
}, false);
input[type="date"]::-webkit-inner-spin-button{
    -webkit-appearance: none;
}

.semPicker::-webkit-calendar-picker-indicator {
    display: none;
}
<div class="caixa">
    <input type="date" /> <br/> <br/>
    <input type="date" class="semPicker" />
</div>
    
30.06.2015 / 00:18