Thursday, April 19, 2012

jquery check variable values

In Jquery I have the following 4 variables.



    var add
var city
var state
var zip


I need to check to see that any one of the above have a value.
If none have a value that is OK.
If all of them have a value that is OK.



Just need to check that at least one of them do not have a value.
Not sure what is the most efficient way of doing this.





No comments:

Post a Comment