Home  >  Article  >  Web Front-end  >  js常见表单应用技巧_表单特效

js常见表单应用技巧_表单特效

WBOY
WBOYOriginal
2016-05-16 19:06:52770browse

显示框架内的指定位置




改变文本框的属性(确定按钮)

  
  

<script> <BR><!-- <BR>function tot() <BR> { <BR> if (document.form1.name.disabled == true) <BR> { <BR> document.all.name.disabled=false; <BR> } <BR> else <BR> { <BR> document.all.name.disabled=true; <BR> } <BR> } <br><br>//--> <BR></script>


注:以下的readOnly的O必须为大写r必须为小写
<script> <BR><!-- <BR>function tot() <BR> { <BR> if (document.all.name.readOnly == true) <BR> { <BR> document.all.name.readOnly=false; <BR> } <BR> else <BR> { <BR> document.all.name.readOnly=true; <BR> } <BR> } <br><br>//--> <BR></script>

改变文本框的属性(单选按钮)

<script> <BR><!-- <BR>function cStyleshow() <BR>{ <BR>document.all.name.disabled=false; <br><br>} <BR>function cStylehidde() <BR>{ <br><br>document.all.name.disabled=true; <br><br>} <br><br>--> <BR></script>

1
2





改变文本框的属性(下拉列表)

 

Statement:
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