0

So this has been answered before. Since im merly familiar with css im abit lost here. I have 2 datepickers. With code

<style>
.ui-datepicker-calendar {
    display: none;
    }
</style>

both datepickers lose day-picking option. But I would like to keep it on the second one (name="datepicker1" id = "datepicker1"). I have tried

<style>  
    #datepicker.ui-datepicker-calendar {
        display: none;
    }
</style>

but it doesn't do anything. datepicker i'd like to remove is: <div id="datepicker" name="datepicker"></div>

Edit: I wan't to keep month and year picking option and remove daypicking option from first datepicker.
I have helped myself with jQuery UI DatePicker to show month year only , but i can't find solution on how to hide only one of datepickers' daypicking option.

Community
  • 1
  • 1
Vedran
  • 43
  • 3
  • 12

2 Answers2

0

There should be method 'hide'. Look into official documentations: http://api.jqueryui.com/datepicker/#method-hide.

Alex
  • 1,073
  • 9
  • 20
  • that hides whole datepicker, right? I guess I wasn't clear enough, I want to keep month and year picking option and remove daypicking – Vedran Nov 30 '14 at 16:45
0

I suggest putting a space between #datepicker and .ui-datepicker-calendar, otherwise it will only select items that have the id AND the class.

David Knaack
  • 172
  • 1
  • 1
  • 8