javascript - Function won't execute -


I am trying to create a function that will be executed on one click, on condition that a variable is set to 0;

However, the function will not be executed, even if set to 0. (I'm using jquery)

  var menuVisible = 0; $ ('#link'). Show ("slow"); menu = 1;}});  

I'm testing the value of the 'menuVisible' variable with warning, and if this is really '0', why would not the function execute?

This is just a suggestion that should be given the solution worked. If in fact you want to create a" click "open / close position (this is my assumption with your code then it is wrong Do not believe Use and instead hide () / show () Have fun toggle () function :)


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -