search

Home  >  Q&A  >  body text

There is a problem with the label name attribute. Please give me some advice.

<input type="checkbox" name="item[]">Tag 1

<input type="checkbox" name="item[]">Tag 2

<input type="checkbox" name="item[]">Tag 3

......

Questions in the video case course, multiple tags use the same name Naming, that is, name="item[], actually this name is named in the form of an array, so why is "[ ]" empty? How does the browser identify the corresponding tag through the array subscript? Thank you


遇**是我的缘遇**是我的缘2021 days ago1073

reply all(1)I'll reply

  • 秋香姐家的小书童

    秋香姐家的小书童2019-06-26 15:08:21

    If the subscript is not written, it will start from 0 by default. If the four arrays are 0 123

    reply
    0
  • Cancelreply