Remove 'Now' button from jsfile of timepicker jquery plugin

BruceyBandit picture BruceyBandit · Dec 15, 2011 · Viewed 8.8k times · Source

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

Answer

Warren Sergent picture Warren Sergent · Dec 15, 2011

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.