I need to hide a div if another div has a class.
I created a very simple example HERE
I need a div below to hide when the word "click" is .. well .. snapped. It adds the class to the middle div just fine, but it seems that hasClass() doesn't want to work?
NOTE: The structure should be like this. If you click βclickβ, change the middle div (add a class?) And manipulate the lower div based on the middle div. With this setting - I can't just do "if CLICK is clicked, slideUp () is the bottom div".
Also, after clicking "ok" or "cancel", it will return because the middle div will no longer have a class. Provided that the method I can get here is haha.
Xhynk source share