Using "null" in jQuery functions. Is this okay?

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2011-01-03T03:47:44Z Indexed on 2011/01/03 3:53 UTC
Read the original article Hit count: 153

Filed under:
|
|

My database consists of some entries which are NULL (so they don't affect max, min, etc..). When I pull all of the data from the database, I need to repopulate form fields with the values. Using .val(value) where value = NULL seems to work without any problems, but I'm not sure if this is a valid way to go about this. It doesn't say anything in the jQuery documentation (that I can find) about using NULL as parameters to functions.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery