title: Magento Ajax Based Attributes Filters
body: <p>I need to place dropdowns which will be connected to each other e.g Truck Brand, Truck Model, Model Years.</p>
  
  <p>So There will be one drop down for Brand. which contains all the attribute options of Truck Brands. Once Selected Brand, another dropdown will appear which contains the attribute options of Truck Model but filtered for that specific brand. Once Model is selected, the years dropdown will apear containing the filtered years for that brand and model. I am new to Magento, and I can get attributes and its options through php using</p>
  
  <pre><code>  $attributeId = Mage::getResourceModel('eav/entity_attribute')
   -&gt;getIdByCode('catalog_product','attribute_code_here');
    $attribute = Mage::getModel('catalog/resource_eav_attribute')-&gt;load($attributeId);
    $attributeOptions = $attribute -&gt;getSource()-&gt;getAllOptions();
  </code></pre>
  
  <p>But I dont get filtered Attribute Options fitlered on first attribute. and speaicly using ajax.</p>