﻿$(function () {
    var cat = $('#worldzone');
    var el = $('#country');
    var attr = $('#city');
        
    el.selectChain({
            target: attr,
            url: 'index.php',
            data: { ajax: true}            
    });        

    // note that we're assigning in reverse order
    // to allow the chaining change trigger to work
    cat.selectChain({
            target: el,
            url: 'index.php',
            data: { ajax: true }
    }).trigger('change');
        
    attr.selectShop({
        	data: $('#city')
    })
    
    
});