How to run a function after div has lost focus?
问题 I have several divs that each contain a form . Each of the forms has two input text fields . I am trying to trigger a function after div looses focus (meaning, not after one of the input text fields looses focus, but after totally new form in new div gains focus). <div class='userInput' id='userInputID'> <div class='col1'> <form id='form1' method='post' action='BuyOrder.php'> <input type='text' name='r1' id='r1' value=''><br /> <input type='text' name='b1' id='b1' value=''><br /> <button id=