Set unique ID for multiple elements using jQuery

In this post I am going to explain, how we can set unique ID for multiple elements at once. Let’s say we have a HTML markup like this:
Continue reading

Advertisements

Replace <span> tag with <div> tag using jQuery

In this post I am going to explain, how we can replace the tag with a

tag using jQuery. Here the tag &

tag I am using is just for the demo, there’s nothing special about these tags. You can replace it with any HTML tag you like. Let’s say we have HTML markup like this:

Continue reading

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