How to check ‘undefined’ value in jQuery
Possible Duplicate: Detecting an undefined object property in JavaScript javascript undefined compare How we can add a check for an undefined variable, like: function A(val) { if (val == undefined) // do this else // do this } 10 Answers 10