if select category then show subcategories of this selected category
<select name="category">
<option value="0">Select Category</option>
<option value="abc">ABC</option>
<option value="123">123</option>
<option value="abc">abc</option>
</select>
if i select ABC category then show only this category subcategories:-
<select name="subcategory" id="ABC">
<option value="0">Select Sub-Category</option>
<option value="A">A</option>
<option value="B">B</option>
<option value=C">C</option>
</select>
if i select 123 category then show only this category subcategories:-
<select name="subcategory" id="123">
<option value="0">Select Sub-Category</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
if i select abc category then show only this category subcategories:-
<select name="subcategory" id="abc">
<option value="0">Select Sub-Category</option>
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
</select>
how make javascript for this please help me thank you.
<select name="category">
<option value="0">Select Category</option>
<option value="abc">ABC</option>
<option value="123">123</option>
<option value="abc">abc</option>
</select>
if i select ABC category then show only this category subcategories:-
<select name="subcategory" id="ABC">
<option value="0">Select Sub-Category</option>
<option value="A">A</option>
<option value="B">B</option>
<option value=C">C</option>
</select>
if i select 123 category then show only this category subcategories:-
<select name="subcategory" id="123">
<option value="0">Select Sub-Category</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
if i select abc category then show only this category subcategories:-
<select name="subcategory" id="abc">
<option value="0">Select Sub-Category</option>
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
</select>
how make javascript for this please help me thank you.
Comment