January 28th, 2013, 09:15 PM
Add span tags or classes to text that have no tags?
Is there any way of forcing the addition of span tags or classes to text on a page that has no p, a, span tags, etc. I want to style these text.
I considered just directing my styles to the table or td tags, but it would also affect other tables content, like the p tag in my sample.
<td>I have no tags</td>
<td><p>I have tags</p></td>
January 28th, 2013, 09:49 PM
I am not sure just what you wish to accomplish here. What do you mean by "span tags"? Do you mean <span> and </span>?
If so then the jquery .html() and .append() functions may be what you want.
January 29th, 2013, 04:21 AM
Question is not clear
Please be specific in whatever you want to achieve.