Detailed explanation of examples of select drop-down

零下一度
Release: 2017-06-24 10:24:52
Original
1392 people have browsed it

##name In fact, if there is a name, there is a value, because the button is submitted in the format of name=value. If you do not write the value, the submitted string will be the option string

Actually, it is similar to the input list. Option is used. Value does not need to be added, but assignment is generally used for database storage and calling. The database is more efficient for numeric indexes

##size No need to drop down, just like Taobao sellers select product category list...

optgroup This is not an attribute, it is just a node with multi-layer options. There are many labels used to divide nodes. For example, hgroup is used to organize titles, and

optgroup is used to organize data classification. Of course, this is only for performance, the actual classification is still in the database.

Three three groups, this is the optgroup and label.

multiple After the multi-select is true, press ctrl to select multiple lines