Parsing XML with namespaces using jQuery $().find

前端 未结 3 1273
梦如初夏
梦如初夏 2020-12-06 04:30

I\'m trying to get the contents of a XML document element, but the element has a colon in it\'s name.

This line works for every element but the ones with a colon in

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 05:23

    if you have a jquery selector problem with chrome or webkit not selecting it try

    $(this).find('[nodeName=geo:lat]').text();
    

    this way it works in all browsers

提交回复
热议问题