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 = ""; //…