I am working on a project where I need to manipulate the content of a div. Here is the initial code snippet:
<div class="mytext">first</div>
My goal is to dynamically change this text from 'first' to 'second' after 5 seconds, then to 'third' after another 5 seconds, and finally return to 'first'. Can you offer any assistance or guidance in achieving this functionality?