Javascript/Jquery Boolean help: Hiding/Showing Divs -
Can someone explain to me what I am doing wrong in this code?
var isLoggedIn = function (state) {if (state == true} {$ ("# content-container") Show (); $ (" # Account2 ") Show ();; Hide $ (" #Account ").;} And (state == incorrect) {$ (" # content-container "). Hide (); $ (" # Account2 ") Hide ();; $ (" #Account ") Show ();}} onload = function () {isLoggedIn (false)}} On loads I divs I want to hide, but when I click on the button I want to show the divs?
The way the boolean function is set in the right way?
< Div class = "post-text" itemprop = "text">
Slice the piece on the OP OP again Trying to do. Onload is not clearly defined, which is not addressed, although a event , ieg, window.onload = onload . Jquery-wrapped block .ready () event . js onclick Marked from html ,
Comments
Post a Comment