怎么用js控制html的输出,

WBOY
Release: 2016-06-13 13:50:18
Original
932 people have browsed it

如何用js控制html的输出,急啊~~~
利用radio值的改变而输出不同的html
例如一个form,简单如下:有两个按钮:学生     老师
当选中学生时,不显示职称,
选中老师时显示职称,而且显示位置不能改变。


学生
老师
职称
.....




------解决方案--------------------
职称

然后控制DIV 的显示和隐藏就可以了

------解决方案--------------------

学生
老师
职称


------解决方案--------------------
ls的写反了
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!