Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the skins together with Modernizr #5

Open
sixtyfive opened this issue Aug 25, 2015 · 1 comment
Open

Using the skins together with Modernizr #5

sixtyfive opened this issue Aug 25, 2015 · 1 comment

Comments

@sixtyfive
Copy link

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?

@rtsinani
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants