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

Data 'Required' for Save #10

Open
Bordering opened this issue Dec 7, 2018 · 1 comment
Open

Data 'Required' for Save #10

Bordering opened this issue Dec 7, 2018 · 1 comment

Comments

@Bordering
Copy link

Bordering commented Dec 7, 2018

Hi

As it doesn't use standard form inputs, it's not possible to use HTML5 validation to prevent form submit when the date field(s) haven't been populated. Is there any other way to achieve this?

BTW, thanks for making a really neat datepicker - it looks super smooth, and the CSS is really logical and easy to edit

BW

@crazychicken
Copy link
Owner

Hi @Bordering ,

You can use jQuery here

Or, You want use HTML5 validation with option valiDation

$(document).ready(function(){
  $('.t-datepicker').tDatePicker({
    valiDation: true
  });
});

Thank you.

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