jQuery datepicker() Uncaught TypeError: undefined is not a function

Total Post:52

Points:366
 563  View(s)
Ratings:
Rate this:

I am getting following error in datepicker

jQuery datepicker() Uncaught TypeError: undefined is not a function

this is my jquery code

<script type="text/javascript">


    $(document).ready(function () {
        $('.datepicker').datepicker({

            format: "mm/dd/yyyy",
            endDate: '+0d',
            autoclose: true

        });

      });
</script>
  1. Post:45

    Points:323
    Re: jQuery datepicker() Uncaught TypeError: undefined is not a function

    I just had this issue and solved it using $.noConflict();

    <script type="text/javascript">
    
        var Jquery = jQuery.noConflict();
        Jquery(document).ready(function () {
            Jquery('.datepicker').datepicker({

                format: "mm/dd/yyyy",
                endDate: '+0d',
                autoclose: true

            });

          });
    </script>

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.