I have make a script by using jQuery such as :
$(document).ready(function() {
$('a[name=pmRead]').click(function(e) {
e.preventDefault();
var pmtext=$(this).parents(".pmMain").find(".pmMain5");
});
});
Now, I'd like to use a function like pmtext.show() and get TRUE if the element is visible. Else, I'd like to return FALSE. Any change to get TRUE/FALSE by using show()? (or the sister function hide()).
There is a function to check the visibility, but it is not show()/hide().
if (pmtext.is(':visible')) {
// ....
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With