Wrap ‘n’ number of elements inside a container using jQuery

In this post I am going to explain, how we can wrap some HTML elements inside a container using jQuery. The HTML element can be anything like a <span> or a <div> or even a <img>, but for this demo I am using a <span> to keep it simple. Let’s say we have HTML markup like this:

Continue reading