How can you set some default parameters in datepicker () instead of setting parameters every time the collector is initialized?
$(".selector").datepicker({ dateFormat: 'yy-mm-dd' });
use .setDefaults ()
$.datepicker.setDefaults( settings )
after that just
$(".selector").datepicker();
var defaultFormat = {dateFormat: 'yy-mm-dd'}; $.datepicker.setDefaults(defaultFormat);
Source: https://habr.com/ru/post/896662/More articles:select_related () in class-based generic views - djangoHow to determine if a particular DOM element is visible or not? - jqueryNoise correction in multiple geographic sensors - algorithmJQGrid Header Header and Column Name - jqgridTrying to learn PyQt with knowledge from Tkinter - pythonUIElement vs FrameworkElement - wpfHadoop streaming failed: process exit with nonzero status 137 - hadoopPolygon Trimming: Viewable Area Only - mathRemoving items from a map based on the contents of another map - clojureVisibility of polygons from the edge - visibilityAll Articles