jquery-datepicker-skins icon indicating copy to clipboard operation
jquery-datepicker-skins copied to clipboard

Using the skins together with Modernizr

Open sixtyfive opened this issue 10 years ago • 1 comments

Hi, I've been trying to make your skins work on a site where I use Modernizr to attach a datepicker to every date input. Unfortunately, it doesn't seem to get picked up. The CSS of both jQuery and the skin are included and this is the Modernizr code:

  if (!Modernizr.inputtypes.date) {
    $('input[type=date]').addClass('datepicker ll-skin-latoja');
    $('input[type=date]').datepicker({
      inline: true,
      showOtherMonths: true
      }
    );
  }

Is there anything obvious I'm missing or does it just not work like that with these skins?

sixtyfive avatar Aug 25 '15 09:08 sixtyfive

The skin classes should be added to an elements that wraps the input (as in the input example).

rtsinani avatar Aug 28 '15 20:08 rtsinani