jquery - Javascript change colour of divs, and then colour of the div's focus -
I am creating an html forum and using javascript to change the color of the stage, I have three divis Is a blue, green and red
When every div is clicked, the color of the javascript elements will change I have the .css in javascript I want to change the focus of the submit button with the () function, but the focus portion does not work this Not my javascript code: So I tried Check it out HTML CSS jQuery
$ ( "# green"). Click (function () {$ (".mailheader"). CSS ("background", "# 3d300"); $ ("submit.") CSS ("background", "# A3D 300 "); $ (" Submit: Focus "). CSS (" Background "," # 98 CFF 00 ");}); css ("background", "# 00b4ff"); $ (". Submit") CSS ("background", "# 04A6A9");}); css ("background", "CSS" ("background:", "submit: focus" Css ("background", "# ff0000"); $ ("Submit: Focus"). CSS ("background", "# ea0202");}) ;
$ (". submit: focus"). CSS ("background", "# ea0202"); Focus, but this work Does anyone know how it can be corrected? Thanks
#Green, #red, #blue {height: 50px; Width: 100px; } # Green {background color: green; } #red {background-color: red; } #Blue {background-color: blue; } Click {$ (". Mailholder")
$ ("# green") ) .css ("background" "# a3d300"); $ () CSS ("background" "# a3d300") "submit."; .. $ ("...") Focus (function () {$ ("submit.") CSS ("background", "# 04A6A9");})}); css ("background", "# 00b4ff"); $ (". Submit") CSS ("Background", "#" Focus (function () {$ ("Submit.") CSS ("Background", "# ea0202");})}); css ("background", "# ff0000"); $ (". Submit") Css ("background", "# 98cf00");}}});
Comments
Post a Comment