Next page $("form").submit problem

Next page $("form").submit problem

duran003duran003 Posts: 2Questions: 1Answers: 0
edited February 2020 in Free community support

This code not working on 2.,3. page help please.

$(document).ready( function () {
formajax2(".formajax",true,"Kullanıcı Düzenle");
function formajax2(div,pop,title){
  $(div).submit(function(e) {
      e.preventDefault();
      var form = $(this);
      var url = form.attr('action');
      $.ajax({
             type: "GET",
             url: url,
             data: form.serialize(),
             success: function(data)
             {
              if (pop==true){ popup(data,title); }
             }
           });
  });
}
});

Edited by Kevin:  Syntax highlighting. Details on how to highlight code using markdown can be found in this guide

Answers

  • duran003duran003 Posts: 2Questions: 1Answers: 0

    no help?

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951

    This code not working on 2.,3. page help please.

    Is this with Datatables? If so maybe you can describe what happens and any errors you get.

    Please provide a link to your page or a test case showing the issue so we can offer debugging assistance.

    Kevin

This discussion has been closed.