Answer the question
In order to leave comments, you need to log in
Ajax does not work, writes an error: "Uncaught ReferenceError: $ is not defined" how to fix it??
The following error pops up: "Uncaught ReferenceError: $ is not defined" I
connected the library:
<script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/JQscript.js"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
function nextNewxBox() {
$.ajax({
type:'get',//тип запроса: get,post либо head
url:'/news',//url адрес файла обработчика
data:{'z':'1'},//параметры запроса
response:'text',//тип возвращаемого ответа text либо xml
success:function (data) {
alert('KEK');
alert(data)
// $(’#StartDate’).val().toString();
},
error:function () {
alert('qwe');
}
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question