jquery .append() case sensitive element

前端 未结 4 677
北恋
北恋 2020-12-19 14:39

Hi I need to create xml from data in form to send it to webservice. The problem is that .append() is case insensitive, so .append(\'\')

4条回答
  •  醉梦人生
    2020-12-19 14:47

    Try using $.parseXML() to create the XML element:

    yourObject.append($.parseXML("").documentElement);
    

提交回复
热议问题