This section describes the Radio box/dropdown menu/Add file, integrated css,html and JavaScript implementations, as follows:
Radio Box:
Implementation of the function is: (similar to the usual character test)
Hide part of the page first, then display it by clicking on the Radio box.
To give a comment by the choice of options-(each with a different integral)
Demo Code:
360 Browser 8.1 Demo results:
A page at the beginning:
The Radio box selects Yes:
Tips for not selecting fruit:
Tips for selecting fruit:
Drop down list:
Simple Demo Code:
360 Browser 8.1 Demo results:
The dropdown box is illustrated with text.
The following dropdown box directly uses color to indicate why the color of the set text
Enhanced Drop-down List-two-level link menu-code demo:
The function of the implementation is to determine the display of the second menu, depending on the option of the first menu.
360 Browser 8.1 Demo results:
File component – Add and remove attachments
Does not have the function which links with the backstage oh, just learns the HTML the technology
Demo Code:
360 Browser 8.1 Demo results:
To delete the second line of tr:
The above is a small set to introduce the JavaScript based on the implementation of the single box Drop-down menu to add file effect of the relevant knowledge, I hope to help you, if you want to learn more content please pay attention to cloud habitat community!