Advanced cusomization of date picker dialog

Advanced cusomization of date picker dialog

I have two date pickers on my page:

- A regular one
- A "hacked" one that can only pick years/months.
For the hacked one, I used some custom CSS ( from here ) to hide the calendar.

.

ui-datepicker-calendar {
    display
: none ;
}


However, since there is only one dialog instance on the page, the calendar is hidden for both pickers.

Is there a way to only apply this style to one of the instances? I've checked the docs to see if I could add  a custom class to the dialog, but I couldn't find it.

Kind regards,

Frederik