.cut()Returns: jQuery
Description: Cuts text within an element to clipboard and removes the element.
This function will copy the contents of an element and then remove the element.
Consider the following example:
1
2
3
4
5
6
7
|
|
The text "Some text to copy" will be copied to the clipboard and then the <p>
will be removed and returned.
This .cut()
process will work as if you used to the following code, in every aspect:
1
|
|