How do I select xml child nodes in jQuery?
问题 Right now this code parses the XML file fine, however, in the XML file I have multiple author nodes, I'd like to be able to put a comma in between each author. The XML varies from one to from one to four authors. Thank you ahead of time. /* Load XML File */ $.ajax({ url: "xml/ajax-response-data.xml", cache: false, success: libraryXML }); function libraryXML (xml) { $(xml).find('book').each(function(){ /* Parse the XML File */ var id = $(this).attr('id'); var checked = $(this).attr('checked