How can append a text before abbr tag?

http://jsfiddle.net/4scgd53b/

Is append to the end. There any way to select before abbr tag?

Thanks!

There is a prepend method if that is what you are looking for.

There is a .before() function in jQuery similar to .append():

$('abbr').before('<span id="add_here">new-dynamic-text</span>');

Hope that helps.

1 Like

Well, before is on the outside and prepend is on the inside.

1 Like