skip to Main Content

How to use two forms in the Ajax request? – Jquery ajax

var getLoginpasssystem = function(getPassForgotSystem,getLoginCheckSystem){ $(document).ready(function() { $('#login' || '#lostpasswordform').submit(function(e) { e.preventDefault(); $.ajax({ type: "POST", url: 'http://www.virtuelles-museum.com.udev/spielelogin/logsystem.php', data: $(this).serialize(), success: function(response) { var data = JSON.parse(response); if (data.success == "accepted") { document.getElementById('inner').innerHTML = 'Herzlich Willkommen'; // location.href = 'index.php'; } else…

VIEW QUESTION

is there any way to know which button was clicked? – Jquery ajax

I have been making ajax requests many times. I need to know which button I clicked <button class="ajax-btn" onclick="function_1();">Ajax 1</button> <button class="ajax-btn" onclick="function_2();">Ajax 2</button> ... <button class="ajax-btn" onclick="function_10();">Ajax 10</button> // ajax request for each button var ajaxBtnVal = ""; //…

VIEW QUESTION
Back To Top
Search