My XML file:\[code\]<?xml version="1.0"?> <xml> <weather> <location>Wonderland</location> <temp>20</temp> </weather> </xml>\[/code\]My javascript:\[code\]<script type="text/javascript">// <![CDATA[$(document).ready(function(){ $.ajax({ type: "GET", url: "https://..../Weather.php", dataType: "xml", success: function(xml) { $(xml).find('weather').each(function(){ var location = $(this).find("location").text(); var temp = $(this).find("temp").text(); $("#footer").append(temp+location); }); } }); }); // ]]> </script>\[/code\]
Can somebody please show me where I was wrong?Thank you very much
Can somebody please show me where I was wrong?Thank you very much