I have this code that I use for every textbox I have:
- $("textarea").focusout(function () {
- //saveComments();
- alert("Hello");
- });
So if if I leave textbox 1 and click anywhere outside besides clicking any other textbox this code fires once.
But if I click textbox 1 and then textbox 2 the focusout goes on repeatedly:
"Hello", "Hello", "Hello"...etc.
Why does it gets triggered several times when I enter another textbox?
How can this be solved?