I want to get a xml param (‘fileSrc’) in jquery.
What I should do?
My jquery code:
$xml = $("#my_xml_iframe").contents();
//convert object to string or search for fileSrc
alert($xml);
My iframe:
<iframe id="my_xml_iframe" src="myFile.xml"></iframe>
My xml (in iframe):
<reponse>
<fileSrc>photo123.jpg</fileSrc>
</response>
I need code for search a object or convert to string. Anyone can help me?
btw: sorry for my english.
Try this:
Also see my jsfiddle.