when you do document.createElement you create an element that is child of "document" document. Try to create the element with data.createElement.
Paolo On Wed, Aug 26, 2009 at 10:14 AM, g...@iec<abhi.pur...@gmail.com> wrote: > > I am making an ajax call and in response, i am getting an XML. > And then using data from XML, i am creating a form. > I stored response XMl in a variable like this > var xmlData = $(data); > If there is any change in any field of form then i am changing > corresponding node value in xmlData > by appending new node in related node like this : > var val = document.createElement('{nodename}'); > $(val).text({changed value}); > $({corresponding node}).append($(val)); > > This is working fine in FF but not working in IE. > > Kindly guide me how can i solve this problem. > > Thanks in advance to all for providing guidance. >