PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Datepicker combine functions

  1. aldor80
    Member

    Hi Guys,
    can I combine these two scripts. THe problem that i have, when i put the first function in my functions.php, the choice for Month and Years is deactivate.
    And when i place the second script in the php then it dosen't works.

    <script type="text/javascript">
    jQuery(document).ready(function($) {
        $(".datepicker").datepicker({ maxDate: 0 });
    });
    </script>
    
    <script>
      $(function() {
        $( "#datepicker" ).datepicker({
          changeMonth: true,
          changeYear: true
        });
      });
      </script>

    Thanks!

    Posted 11 years ago on Saturday June 22, 2013 | Permalink