Trying to use datepicker with jquery CDN -


i trying use datepicker jquery ui using cdn provided jquery , getting these errors in google chrome , know why.

jquery-ui.js:14 uncaught referenceerror: jquery not defined(anonymous function)

uncaught referenceerror: $ not defined

 <!doctype html>     <html>       <head>       <meta charset="utf-8">       <meta name="viewport" content="width=device-width, initial-scale=1">       <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js" integrity="sha256-0ypkawzp7mp3almrvb2i8gxeendvcq3esl/wsal1ryk="   crossorigin="anonymous"></script>     </head> ... 

as @apad1 stated, jquery ui requires jquery.

put

<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-bbhdlvqf/xty9gja0dq3hiwqf8lacrtxxzkrutelt44=" crossorigin="anonymous"></script> 

before

<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js" integrity="sha256-0ypkawzp7mp3almrvb2i8gxeendvcq3esl/wsal1ryk="   crossorigin="anonymous"></script> 

Comments