How to show nextText / prevText in jQuery datepicker?

According to the documentation fornextText

:

Text to display for next month's link. This attribute is one of the regionalization attributes. The default ThemeRoller style replaces this value with an icon.

So what is the correct way to disable this replacement?

Something like

$(".ui-datepicker-header > .ui-icon").removeClass("ui-icon")

      

obviously doesn't work because it is executed before the elements are actually created.

+3


source to share


1 answer


You can overwrite styles rather than trying to remove them:

.ui-widget-content .ui-icon {
     background-image: none;
 }

      

Here's an example:



http://jsfiddle.net/54cgQ/1/

Oct 9, 2014 Updated example with newer versions of jquery, jquery ui:

http://jsfiddle.net/54cgQ/46/

+2


source







All Articles