check for undefined input field code example Example: how to check if value is undefines if condition jquery if (value === undefined) { // ... }