Simple jQuery not working using .css and .js files from jQueryUI download.
The following is my basic js/jquery code, within HTML, which should 'fire'
- <script type="text/javascript">
- S(document).ready(function(){
- $( "#date" ).datepicker();
- alert ("hello");
- $('#my-tabs').tabs();
- });
- </script>
However ( the alert has been added, just to check the function is running, but it's not ) my HTML is not being styled, N.B. the 'id' variable tag names are definitely right for my elements. The references to the relevant .css and .js files are as follows ...
- <head>
- <meta charset="utf-8">
- <title>My New Page Design</title>
- <link rel="stylesheet" type="text/css" href="jquery-ui.min.css">
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script type="text/javascript" src="jquery-ui.min.js"></script>
- </head>
The file-paths should be OK too, i.e. the files are in the same directory, as my HTML page ( index.html ). Any thoughts ? Thanks.