How do I determine the state of a toggled element?

How do I determine the state of a toggled element?

Postby tomrff » Thu Apr 28, 2011 1:49 pm

Here is the example of toggled element using the :visible or :hidden selectors.

var vis = $(‘#formdiv’).is(‘:visible’);
var hide= $(‘#formdiv’).is(‘:hidden’);
If you want to show a div visibility, then there is example for this
For example:
tomrff
 
Posts: 33
Joined: Sat Jan 08, 2011 10:12 pm

Return to JQuery

Who is online

Users browsing this forum: No registered users and 2 guests

cron