jQuery: How to go through all the characters in <p> paragraph?
问题 I've got a paragraph: <p>I want to put a ding in the universe.</p> I want to change the attributes of the characters in the text e.g. to change its color, so after this the paragraph should look like this: <p> <span class="color"> I </span> <span class="color"> w </span><span class="color"> a </span><span class="color"> n </span><span class="color"> t </span>... </p> How to realize it in jQuery? 回答1: I don't see the point of wrapping individually with the spans that have the same class, but