Can anyone help me with this error please? I don't know what it means

I don’t know what it means.

the for of a label needs to match an id of an input

can you show the code?

    <div class="form-group">
      <label for="gender">Gender 性別</label>
      <select id="dropdown" class="form-control">
        <option disabled selected value>Select 選擇</option>
        <option value="Male">Male 男</option>
        <option value="Female">Female 女</option>
        <option value="NA">Prefer not to say 不提供</option>
        </select>
    </div>
    <div class="form-group">
      <label for="website_or_store">1. Where did you hear about this survey?<br>請問您從哪裡得知此問卷調查?</label>
        <label><input type="radio" name="website_or_store" value="website">UNIQLO official website 優衣庫官方網頁</label>
        <label><input type="radio" name="website_or_store" value="store">UNIQLO store 優衣庫實體門店</label>
    </div>
    <div class="form-group">
      <label for="channel">2. From which channel do you know about UNIQLO news updates? (multiple selections)<br>請問你是從何得知優衣庫的活動訊息?(複選)</label>
      <label><input type="checkbox" value="newspaper">Newspaper 報紙</label>
      <label><input type="checkbox" value="online">Online 網上</label>
      <label><input type="checkbox" value="never">Never 從沒</label>
    </div>

Thank you!

you don’t have any input with this id
you can’t use the label element like that

1 Like

Thank you so much! I can finally fix that!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.