Selecting current date on the date...

User 2836110 Photo


Registered User
109 posts

Morning Eric,
I have noticed that when displaying a number field some browsers seem to show an UP/DOWN arrow so that the user can increment the numbers.
Can this be disabled somehow ??
Attachments:
User 187934 Photo


Senior Advisor
20,192 posts

Yes you can use a text input or add this to your page in a html element to control it with css.
<style>
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance: textfield;
}
</style>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2836110 Photo


Registered User
109 posts

Thank you Eric,

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.