fork download
  1. $(function() {
  2.  
  3. $("body").on("click", ".letter-pagination", function() {
  4. var obj = {};
  5. obj.page = $(this).data("page");
  6. if (obj.page == undefined){
  7. obj.page = $(this).text();
  8. }
  9. obj.tag = tag;
  10.  
  11.  
  12.  
  13. $.ajax({
  14. type: "GET",
  15. url: "/index.php?route=/product/search/ajaxSearch",
  16. data: obj,
  17. dataType: "html",
  18. success: function(data) {
  19. $(".search-content").html(data);
  20. console.log(data);
  21. }
  22. }).fail(function() {
  23. alert("При передаче данных возникла ошибка");
  24. });
  25.  
  26.  
  27. });
  28. })
Runtime error #stdin #stdout #stderr 0.04s 17020KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.js:1:1 ReferenceError: $ is not defined
Stack:
  @prog.js:1:1