if value is undefined display this, else return div code example
Example: check if variable is undefined or null jquery
if (variable == null) {
// variable is either null or undefined
}
if (variable == null) {
// variable is either null or undefined
}