Results 1 to 7 of 7
Jun 25, 2011, 03:37 #1
- Join Date
- Apr 2010
- 0 Post(s)
- 0 Thread(s)
How to insert a start tag, but not an end tag
Hi - I need to isolate some auto-generated content that is displayed after an end </a> tag, and before a start <div> tag. This text doesn't have any surrounding tags itself, so I need to add some kind of hook to it in order to style it with CSS.
I have tried to use insertAfter to put a <span> after the </a> tag, and then an insertBefore to put a </span> before the <div> tag, but this just results in putting both the start and end <span> tags before the bit of text I want to isolate.
Is there another way of doing this?