<!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd "><HTML><Head> <title>Title</title> <style>. Hide{Display:None} </style></Head><Body><inputID=22type= "button"value= "Switch"/><Divclass= "a Hide">Fffff</Div><Scriptsrc= "Jquery-1.12.4.js"></Script><Script>//Click the button if there is hide remove, if not, add hide//$ (' #22 '). Click (function () {//if ($ ('. a '). Hasclass (' hide ')) {//$ ('. a '). Removeclass (' hide ')//}else//$ ('. a '). addclass (' hide ')// })$("#22"). Click (function () { $('. A'). Toggleclass ('Hide')})//Toggleclass Some words I you go, no plus</Script></Body></HTML>
Switch
Disabled text Box Gray
<!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd "><HTML><Head> <title>Title</title></Head><Body><Div>--Disabled text box gray<inputtype= "text"Disabled/></Div></Body></HTML>
Disabled text Box gray
Python: switch, turn the light off