getting only matched element with clone()

getting only matched element with clone()

Hi,

I'm a starter in using jQuery and I decided to work my way through the 'Learning JQuery' book from packt.

Somewhere in Chapter 5 they use the clone() function with the false attribute.
The JQuery version used in the book is 1.1.3a. With the clone(false) method the writer can clone only the matched element and not the descendants. And that works in 1.1.3a.

I know that this is no longer the case in JQuery 1.4. Boolean is only for Event Handlers.
But what is the new equivalent of this method? In other words. How can I clone an element with only the matched element and not it's descendants?