How to check whether a particular element is hidden from the user? In my code, under certain conditions, this code will be called:
$("#VersionSelectField").hide('fast');
So I have to make sure that if $("#VersionSelectField")
is hidden, then I would not have to validate the value inside it when I submit the form ( I use JQuery Validate library for this purpose).
Any ideas?
$("#VersionSelectField").is(':hidden');
This works for me:
$("#VersionSelectField").css("display") == "none";
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