Answer the question
In order to leave comments, you need to log in
How to create a script to check content for changes and output text?
Please help me to make a script that would check a div with a certain css class or id for changes.
For example:
I have a div class=listen
. Records for the last 24 hours are displayed there.
It is necessary that the script checks this div and if an entry is added to this div, that is, an item is added,
then the script displays the word "new" by a certain div div=info displays the word new!
And the inscription is removed after 24 hours if there are no changes.
Thanks in advance to everyone who pays attention!
<a href="/">Запись</a>
Answer the question
In order to leave comments, you need to log in
It displays records for the last 24 hours.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question