Q:

Not able to get the value of xml attribute using jquery

I am trying to access the value of attribute of xml tag using jquery. 
The xml tag attribute that I am trying to access is:
<yweather:condition code="30" date="Fri, 04 Mar 2016 12:53 pm AKST" temp="11" text="Partly Cloudy"/>

I am trying to access it as follows inside success function:
alert($(xml).find('yweather:condition').attr("temp"));

But it is alerting "undefined".  Not able to understand what went wrong

A:

Need to escape special characters with \\ per jQuery selector docs
Try
alert($(xml).find('yweather\\:condition').attr("temp"));

