Does anyone know how to remove the "Now" button from the jquery timepicker add on file?
I removed the var currentText = 'Now'
, and this change removes the text, but the button is still there, labelled "Today" instead of "Now". I do not need this button in the timepicker.
I am using Trent Richardson's timepicker.
The timepicker can be seen on this website: click here
The js file can be seen here, click here
The 'Now' button replaces the Today button normally, but without text it uses the default.
In your CSS, simply set the now button to "display: none;"
If I remember correctly, you can set this in the .ui-priority-secondary - but not sure if it is used elsewhere.. have a play, but this should be your solution, just depends on usage.
Found my answer here:
I am using the Yii extension and added the code found at the site below to my css/main.css file. Voila!
https://forum.jquery.com/topic/disable-now-in-timepicker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With