changing text periodically in a span from an array with jquery
- by Peter Clark
I have a span, eg:
<p>Here is a sentence <span id="rotate">this</span> is what changes</p>
and I'd like the contents of that span to change every few moments between a list of terms, so the contents might change to be:
<span id="rotate">then</span>
<span id="rotate">thus</span>
and so on. I'd like the text to fade out and then the new text fade in.
Whats the best way to do this via jquery?