Home >Web Front-end >JS Tutorial >js common form application skills_form special effects

js common form application skills_form special effects

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

Display the specified position within the frame




Change the properties of the text box (OK button)








Note: The following O in readOnly must be uppercase and r must be lowercase



Change the properties of the text box (radio button)



1

2




2

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