Vote count: 0 let toggleForm = function() { // code here } document.getElementById('one').addEventListener("click", toggleForm, false); document.getElementById('two').addEventListener("click", toggleForm, false); In toggleForm I'd like to know whether element one or two fired the event. How would you go about doing that? asked 1 min agouser1904218 Let's block ads! بخوانید...
ادامه مطلب