title: How to display dropdown list depends on the another dropdown option in joomla 3.x
body: <p>I am new to joomla 3,Creating a custom Joomla component. I want to display the product drodown list item based on the product category dropdown list item in admin side. All data loaded from DB..I have knowledge to do it core php but i didn't have idea in joomla 3.</p>
  
  <p>How can I create the custom field type for the product category list and product list, how i called the ajax function when product category list item is changed</p>
  
  <p>I didn't have idea how we call the ajax file using jquery when the product category list item is changed..</p>
  
  <p>For Example:</p>
  
  <pre><code>&lt;b&gt;Please Product catgory&lt;/b&gt;&lt;br/&gt;
  &lt;select name="productcat" id="productcat"&gt;
          &lt;option value=""&gt;Select category&lt;/option&gt;
          &lt;option value="1"&gt;productcategory1&lt;/option&gt;
          &lt;option value="2"&gt;productcategory2&lt;/option&gt;
          &lt;option value="3"&gt;productcategory3&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>If productcategory1 selected then i want to display product dropdown items depends productcategory1 like wise:</p>
  
  <pre><code>&lt;select name="product" id="product"&gt;
          &lt;option value=""&gt;choose product&lt;/option&gt;
          &lt;option value="1"&gt;product1&lt;/option&gt;
          &lt;option value="2"&gt;product2&lt;/option&gt;
          &lt;option value="3"&gt;product3&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Please any one tell the solution for it..</p>