I would be able to find the first hidden parents of an element to make it visible.
trying this whitout succes :
$('input[name="toto"]').parents(":hidden:first").show();
ideas about this ?
I would be able to find the first hidden parents of an element to make it visible.
trying this whitout succes :
$('input[name="toto"]').parents(":hidden:first").show();
ideas about this ?
Why not just .show()
all ancestor elements that are hidden:
$('input[name="toto"]').parents(":hidden").show();
In fact, why waste time filtering out the :hidden
ancestors, when you could just show()
all of them?:
$('input[name="toto"]').parents().show();