user3242836
user3242836

Reputation: 5

Hide now button only on one instance of timepicker

I use two instance of timepicker on my page. Is there a way to hide current button in one and not the other. I added the $('.ui-datepicker-current' ).css('display','none'); to click function but that hides it initially but when I select the date it puts the Now button back. Tried with beforeShow, and onSelect also but it does not permanently take the Now button off.

Is there a way I can selectively add a css entry to hide it from a specific instance of timepicker?

Upvotes: 0

Views: 555

Answers (1)

Toothbrush
Toothbrush

Reputation: 2141

Yes. Try the following CSS:

#start .ui-datepicker-current {
    display: none !important;
}

Upvotes: 1

Related Questions