PHP: <head> <link href="/themes/night/main.css" rel="stylesheet" type="text/css"/> <link href="/themes/night/header_sensor.css" rel="stylesheet" type="text/css"/> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate, max-age=31536000"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0" > <script type="text/javascript" src="js/jquery.js"></script> </head> Код (Javascript): function show() { $.ajax({ url: "time.php", cache: false, success: function(html){ $("#time").html(html); } }); } $(document).ready(function(){ show(); setInterval('show()',1000); }); код перед скриптом: HTML: <img src="/themes/night/images/time.gif" alt="." title="."><div id="time"></div><div class="line"></div> <script> function show() И ошибка в консоли: "Uncaught ReferenceError: $ is not defined" Помогите, что я делаю не так? ссылка на скрин: https://prnt.sc/kaihct
сделал, вместо url: "time.php", написал url: "/time.php" ну и "js/jquery.js" -> "/js/jquery.js" Спасибо