thinkbuildblog

Tag Archives: clone

Using the jQuery clone function

Posted by Khalid Saleem

JQuery has many great functions to make a site come alive. One of my favorite functions is .clone() -   it does exactly what its name describes, creating a copy of a single element or set of elements in the DOM and displays it where you want it on the page.  It works great for things like tool tips and more complex hover states.

Here’s an example of how to put it to good use. (more…)