Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Test whether a DIV is hidden or shown

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Test whether a DIV is hidden or shown

Hello Andy,

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

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Test whether a DIV is hidden or shown

many thanks Sergiy!

Return to “Issues”