jquery if condition for undefined code example Example: jquery typeof undefined if (typeof value === "undefined") { // ... }