JQuery 1.6.1 Add A New Node In XML
jsFiddle URL : http://jsfiddle.net/rcrathore/Y8DpM/ I am trying to add a new node in XML using jQuery. Following code works fine in Firefox, Safari and Chrome but giving error in I
Solution 1:
The code works in all browsers if I replace appendTo line
$(newNode).appendTo($xml.find("node2"));
by :
$xml.find("node2").get(0).appendChild(newNode);
Edit
As per bugs.jquery.com (9602), this issue will be fixed in 1.6.2.
Post a Comment for "JQuery 1.6.1 Add A New Node In XML"