create onclick event for multiple ids – Jquery ajax
I have written a js function: $(document).on('click', '#id1', function () { $.ajax({ type: "POST", url: "/url", data: { uInput: 'id1' }, success: function (response) { some code.... }, error: function (error) { console.log(error); } }); }); Problem is, since I…