GET multiple xml files?



I'm trying to load multiple xml files depending on which button is clicked.


I have attached a snippet of code, I'm really more focused on the if...else if.


Is what I'm trying to do even logical or possible?



$(document).ready(function(){
$(".btn_container").click(function() {
if($(".btn_globalImg").click()) {
$.get('inc/Global_BestEmployers.xml', function(d){
} else if ($(".btn_regionalImg").click() {
$.get('inc/Global_BestEmployers.xml', function(d){
} else if ($(".btn_countriesImg").click() {
$.get('inc/Global_BestEmployers.xml', function(d){


$('body').append('<dl />');

$(d).find('company').each(function(){

No comments:

Post a Comment