I'm using a tooltip plugin
in jQuery to modify attributes title=""
of various classes. It was working fine until I realized a problem - I am using a button that changes class as it is clicked, and when this button changes class the tooltip stops working.
It's obvious that I've tried adding the class
of the button to which it changes after clicking on the same function as tooltip
in JavaScript, but this did not work.
So my solution to this was to use setInterval()
to run this function from x
to% with% time so that the tooltip would run again after the class of this button has been modified.
But now I have 2 questions:
-
When we use
x
the request for this function is being sent to the server each time it tries to run again, or it is only running in its own Browser Window