Change the text after the loading of the html?

The point is that you need to rename the menu item with the "Item 1" to "Пункт2".
But "Phase 1" only appears when hover the mouse on "Button1" (and poyavletsya about 1-2s).What is generated on the fly (hidden item there).

The essence of the algorithm is as follows:
1.Put the cursor on "Button1"
2.After 1-2s you receive a "Punkt1"
3.When you see the "Punkt1" catch this event $('#punkt1').html(Пункт2).
Is there such event that will catch the readiness of the item(item 2 in the algorithm) to work with him.
June 8th 19 at 17:02
1 answer
June 8th 19 at 17:04
Solution
Thank you) make as an answer, I would mark it solved - carolyne27 commented on June 8th 19 at 17:28
here a little not in the way you want.
don't catch the event from paragraph (3).
when executing the event (1) add and (2) and (3) from - nikolas.Reichert commented on June 8th 19 at 17:07
no , we Kopko, phase 1 appears , tap the button and item 1 is deleted.
And here I have the appearance of item 1 to change the text "ANY TEXT" - carolyne27 commented on June 8th 19 at 17:10
, https://jsfiddle.net/cqvaquge/1/
you can, of course, with different conditions to play - nikolas.Reichert commented on June 8th 19 at 17:13
I don't need to implement this. The implementation is already there.
Now without changing this script, add new script to it and when you see the "phase 1" rename it to "пункт2" immediately. What you need to do this is a separate method - carolyne27 commented on June 8th 19 at 17:16
you can catch the event "changes the DOM" and search need.
it is important to know what you're looking for ))) - nikolas.Reichert commented on June 8th 19 at 17:19
and no chance of such an event that a certain element with the class appeared in the DOM and it is possible to catch? Something like delegate for events - carolyne27 commented on June 8th 19 at 17:22
there MutationObserver

https://jsfiddle.net/cqvaquge/3/ - nikolas.Reichert commented on June 8th 19 at 17:25
only 1 time can reply to the topic. can this response be noted - nikolas.Reichert commented on June 8th 19 at 17:31

Find more questions by tags JavaScriptjQuery