Jquery Button events and form sends not working on setinterval

I have a table and I have buttons in every row. if I disable setinterval everything works fine but when I start setinterval I only load page any buttons not working. <script src=”folder/js/jquery-2.1.4.min.js”></script> <script> $(document).ready(function() { var refreshId = setInterval(function() { $(“#refresh”).load(location.href + ‘ #refresh’); }, 1000); $(“#acceptOrderButton”).click(function(event){ clearInterval(refreshId); alert (“in”); }); }); If I…

How to fix modal is not a function?

i’m pretty sure that i have sort the .js files in the right way, <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js”></script> <script src=”https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js”></script> <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js”></script> then i call the modal like this $(“#save”).click(function(){ $.ajax({ url : “”, type : “post”, data : $(‘#form-modul’).serialize(), success : function(){ $(‘#modal-modul’).modal(‘hide’); table.ajax.reload(); }, }) }) it’s working fine in the native php, but after…