title: Looping through multidimensional array with jQuery
body: <p>So as the example below show I want to loop through an array inside an jQuery plugin that I'm trying to build. It's not working so can somebody help me with this.</p>
  
  <pre><code>$.each(defaults.garage, function(i, value){
  
      $.each(value.cars, function(i2, value2){
  
          alert(value2.model);
  
      }); 
  
  });
  
  $.fn[pluginName].defaults = {
        garage:[
              {
                  name: '',
                  country:'',
                  cars:[
                          {
                              model: '',
                              year:''
  
                          },
                          {
                              model: '',
                              year:''
  
                          }
  
                  ],
                  hook: function(){}
              }       
          ],
          garage:[
              {
                  name: '',
                  country:'',
                  cars:[
                          {
                              model: '',
                              year:''
  
                          },
                          {
                              model: '',
                              year:''
  
                          }
  
                  ],
                  hook: function(){}
              }       
          ]
  };
  </code></pre>