This article mainly introduces how to hide the logon box when checking the box is selected for anonymous logon in javascript. The example analyzes the skills related to the element style of the javascript dynamic operation page, which is very simple and practical, for more information about how to use JavaScript to hide the logon box when you select Anonymous Logon As the check box, see the example in this article. Share it with you for your reference. The details are as follows:
This technique is quite common. Some websites can log on to post or post anonymously. When you select the check box to select Anonymous post, the logon box is automatically hidden. Is it more user-friendly? This actually adds a little JavaScript code to the form element. For the specific implementation method, see the code.
Shows the running effect:
The Online Demo address is as follows:
Http://demo.jb51.net/js/2015/js-checkbox-nm-login-submit-codes/
The Code is as follows:
Hide the logon box when you select Anonymous logon in the check boxAccount:Password: Netizen Name:Anonymous
I hope this article will help you design javascript programs.