MyTechDictionary
Technical Question Answers related to dotnet, dbms, sql, wcf ,ajax,jquery etc
Tuesday, 20 May 2014
Jquery code to check undefined value
Note that
typeof
always returns a string, and doesn't generate an error if the variable doesn't exist at all.
function
A(val){
if
(
typeof
(val) ===
"undefined"
)
//do this
else
//do this
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment