load data from external file jQuery
- by bah
Hi,
I need to take data from external file and format it, the problem is, i want to have that data stored into a variable. Load method works for me, because i need to load not the whole document, but just a part of it, but then again, i want to load to variable and not to some dom element. $.get can do this, but it doesn't support selectors. Is there any way I could make this?
Now examples:
Mine external file consists of a table, which has format like this:
<table><tr><td><img /></td></tr><tr><td><a></a></td><td><span></span></td></tr></table>
I need to extract img, a and span tags because I need them to be displayed in different order than they're now. So, is there any chance for me that i could make this work? Thanks.