JQuery: Check whether an Element is Hidden from the user

jquery

Solution

$("#VersionSelectField").is(':hidden');

Problem

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?

Original source