I have class dot and have html code like that:
<span class="dot">Text1</span>
<span class="dot">Text2</span>
<span class="dot">Text3</span>
I want to add to each element who has class dot additional text automatically. For example, add • code that it would be
<span class="dot">• Text1</span>
<span class="dot">• Text2</span>
<span class="dot">• Text3</span>
I imagine it should be done with jquery, so any help?
Thanks.
How about using CSS instead of javascript? http://jsfiddle.net/SEvkJ/
EDIT: If you want a space in there, then do this: http://jsfiddle.net/SEvkJ/1/