Write your own toggle function similar to the one in jquery
This is HTML
<!DOCTYPE HTML><HTMLLang= "en"> <Head> <MetaCharSet= "Utf-8"> <title>Public test Page</title> <Scriptsrc= "Http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></Script> <Scripttype= "Text/javascript"> functionSwitchsearch (o) {var Hit=$ (O). Data (' Hit'); if( Hit=== 0) {o.innerhtml= "Zhejiang Agriculture and Forestry University"; $ (O). Data (' Hit', 1); } Else{o.innerhtml= "School of Environment and Resources"; $ (O). Data (' Hit', 0); } } </Script> <styletype= "Text/css">Body{margin:0;padding:0; }Div{background:#0062A7;width:100px;Height:100px;margin:10px;text-align:Center;float: Left; } </style> </Head> <Body> <DivID= "Div1"onclick= "Switchsearch (this)"Data-hit= "0">Module One</Div> <DivID= "Div2"onclick= "Switchsearch (this)"Data-hit= "0">Module two</Div> <DivID= "Div3"onclick= "Switchsearch (this)"Data-hit= "0">Module three</Div> </Body></HTML>