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