jQuery.parseHTML( data [, context ] [, keepScripts ] ) Returns: Array
Description: Parses a string into an array of DOM nodes.
-
version added: 1.8jQuery.parseHTML( data [, context ] [, keepScripts ] )
jQuery.parseHTML
uses a native DOM element creation function to convert the string to a set of DOM elements, which can then be inserted into the document.
Example:
Create an array of Dom nodes using an HTML string and insert it into a div.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
|