How to remove Clear button in time picker?


Topic: How to remove Clear button in time picker?

hightech asked 5 years ago

I want to remove the Clear button in time picker. I found no option in time picker and I have tried this CSS and it doesn't work:

  .picker__footer:nth-child(2) {

        display:none!important;

    }

enter image description here


Marta Szymanska staff pro premium answered 5 years ago

hightech answered 5 years ago

my version of MDB doesn't have a clear class. enter image description here but this code worked for me:

.picker__footer .clockpicker-button:nth-child(2) {
            display: none;
        }

Thank you Marta.


Marta Szymanska staff pro premium commented 5 years ago

Hi,

there should be a "clear" button in a time picker, please check out the documentation: https://mdbootstrap.com/docs/jquery/forms/time-picker/.

Best, Marta


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.14.1
  • Device: laptop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: Yes