Using jQuery to load an XML file
Hello,
I'm trying to load an xml file with jQuery but it doesn't seem to work. This is my code, I made it very simple for testing, but it doesn't work.
- var test = "./test.xml";
-
- $.get(
- test,
- function(data) {
- $('#textarea').text(data);
- }
- );
I just don't know how to get the data of an xml file, does the $.get method not work with xml? When I try it with an .html file it works.
Regards,
Bart