Home > Web Front-end > JS Tutorial > Summary of common codes for js control form operations_javascript skills

Summary of common codes for js control form operations_javascript skills

WBOY
Release: 2016-05-16 17:25:33
Original
1016 people have browsed it

1. Automatically select text when the mouse passes over it
Code:

Copy code The code is as follows:

Automatic selection when the mouse moves over:

2. Set radio button
Code:
Copy code The code is as follows:





js operation form



The camera brand you are using




  ="nikon">Nikon




 








 







3. Set the complex Select box
Code:



Copy code
The code is as follows:
4.设置下拉菜单
下拉菜单中最重要的莫过于访问被用户选中的选项,对于单选下拉菜单可以通过selectedIndex属性轻松地访问到选项。
Code:
复制代码 代码如下:





js操作表单













Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template