Support

Account

Home Forums Backend Issues (wp-admin) Datepicker – Disable Selecting Future Dates Reply To: Datepicker – Disable Selecting Future Dates

  • I can’t for the life of me get this to work. I’ve been trying methods all over the forums. That is the correct hook I should be using, right? I can get console.log() from the above and below:

    ( function( $ ) {
    	$( '#dp1528832081239' ).datepicker( 'option', 'maxDate', 0 );
    	// $( '.field_5b16a9d5df47c .acf-date_picker input.input' ).datepicker( 'option', 'maxDate', 0 );
    } )( jQuery );