Questions tagged [wrapinner]

Built in jQuery function wrapInner()

Relates to the built in jQuery function wrapInner() found here.

4 questions
1
vote
0 answers

Convert array output to link

I have an array output by Advanced Custom Fields in WordPress. I want to output that array into a clean a element. This is my output:
CliffVandyck
  • 164
  • 11
1
vote
1 answer

wrapInner() of body until a specified element

Using the below HTML:

Foo

a
b

Bar

c
I can wrap the whole of the body section easily using $('body').wrapInner('
Peter Featherstone
  • 7,835
  • 4
  • 32
  • 64
0
votes
1 answer

Vanilla equivalent to wrapInner() for placing tags inside li (unordered lists)

Is there any way to do the jquery wrapInner() to add items inside an unordered list but with Vanilla javascript, if I could use jquery I would use something like $('li').wrapInner('
'); but I can not use jquery,…
0
votes
2 answers

How to Implement an Angular 2 content wrapper Directive (like jQuery's wrapInner)

I would like to implement an Angular 2 directive that behaves like jQuery's wrapInner method. The library I'm writing will use angular 2+ only (no jQuery). Basically, the directive will take the content of the element or component it has been…
Somo S.
  • 3,997
  • 4
  • 26
  • 33