Page 1 of 1

Test whether a DIV is hidden or shown

Posted: Tue Dec 15, 2015 1:18 pm
by Andy Parker

Hi,

I have several DIVs that I make visible or hidden during the apps lifetime.

I use the Appery("helppage_div").hide() or .show() command to control these, and the "visible" option in the DIVs parameters is not ticked to hide it by default.

Is there a way I can check to see if the DIV is visible or not?

I tried:
var divvisible = Appery("helppage_div").css("visibility");

but this always returns true, so thats not helpful.


Test whether a DIV is hidden or shown

Posted: Tue Dec 15, 2015 4:33 pm
by Serhii Kulibaba

Hello Andy,

Please use JS code below:
var divvisible = Apperyio("helppage_div").is('visible');


Test whether a DIV is hidden or shown

Posted: Tue Dec 15, 2015 4:34 pm
by Andy Parker

many thanks Sergiy!