こんにちは、助けていただけないでしょうか。JavaScript を使用して、ユーザーが性別を指定したときに適切なオプションを服のオプション ボックスに入力する必要があります。これは私がこれまでに持っているコードです、
<script type="text/javascript">
var subListArray = [];
subListArray[0] = 'Select a type first';
subListArray[1] = ['skirt', 'dress', 'tights'];
subListArray[2] = ['jeans', 'hat'];
</script>
人
Gender Type: <select name="genderType" id="genderType" >
<option value="">Gender Type?</option>
<option value="girl">Female</option>
<option value="boy">Male</option>
</select> </br>
Clothes <select name="clothType">
<option value="">Choose a Type</option>
</select>