daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jan 24th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. $('[name="DOB"]').flatpickr({
  3.     enableTime: false,
  4.     dateFormat: "d/m/Y",
  5.     minDate: new Date().fp_incr(-43800), // 120 years ago
  6.     maxDate: new Date().fp_incr(-6570), // 18 years ago
  7. });
  8.    
  9. <input name="DOB" type="text"/>
  10.    
  11. setTimeout(function(){
  12. $('[name="DOB"]').flatpickr({
  13.     enableTime: false,
  14.     dateFormat: "d/m/Y",
  15.     minDate: new Date().fp_incr(-43800), // 120 years ago
  16.     maxDate: new Date().fp_incr(-6570), // 18 years ago
  17. });  
  18. },500);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top