Advertisement
vfontjr

date_field_start_date.js

Aug 18th, 2022
828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. jQuery(document).ready(function($) {
  3.     "use strict";
  4.    
  5.     /* change the calendar start day when date field receives foucus */
  6.     $('#field_your_date_field_id').on('focus', function() {
  7.        
  8.         /* apply the radio button's value to the firstDay option */
  9.         $(this).datepicker('option', 'firstDay', 1);
  10.     });
  11.  });
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement