Hello everyone i just want to add <span>
after <a>
tag . This is the demo of adding <span>
tag inside the <a>
tag
Asked
Active
Viewed 357 times
-1

Jake Colby
- 23
- 2
- 7
1 Answers
2
You can use after
to add element after the selector.
$('a').after("<span>DEmo</span>");
Demo: https://jsfiddle.net/tusharj/upbx2jv4/1/
Insert content, specified by the parameter, after each element in the set of matched elements.

Tushar
- 85,780
- 21
- 159
- 179
-
1Thanks a lot it works for me like charm – Jake Colby Jun 01 '15 at 15:16