-1

Hello everyone i just want to add <span> after <a> tag . This is the demo of adding <span> tag inside the <a> tag

demo

Jake Colby
  • 23
  • 2
  • 7

1 Answers1

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.

Docs: http://api.jquery.com/after/

Tushar
  • 85,780
  • 21
  • 159
  • 179