This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: datepicker year range for dropdown

Home Forums Product Support Forums Ajax Search Pro for WordPress Support datepicker year range for dropdown Reply To: datepicker year range for dropdown

#34168
Ernest MarcinkoErnest Marcinko
Keymaster

Thank you!

Try this variation instead, it should work:

add_action('wp_footer', 'wp_footer_datepicker_range_fix', 9999);
function wp_footer_datepicker_range_fix() {
	?>
	<script>
	(function($){
		setTimeout(function(){
			$('.asp_w .hasDatepicker').datepicker('option', 'yearRange', '-100:+100')
		}, 500);
	})(jQuery);
	</script>
	<?php
}