thank you , but it is not exactly what i need here is my current working code:
var me = mfrm.elements;
// loop through all input elements in form
for (var i=0; i < me.length; i++) {
var isVisible = $j(me[i]).parent().parent(
if(isVisible) { ........
The problem is that sometimes the input element has 3 parents-to-invisible, sometimes 2 or one. I wanted to get an elegant form how to find the 1st invisible parent (if any).
Main Topics
Browse All Topics





by: hieloPosted on 2008-06-02 at 00:00:05ID: 21690033
$("div:visible") will give you a list of all the div that are visible. So, if your div has a spific id like "test",
then:
$("div:visible").each( function() {
if( this.id=="test")
{
alert('hi');
}
} );
will alert hi for that div.