From 5408e64ba18cb8a1149ffefaf7e59e77b2ef45dc Mon Sep 17 00:00:00 2001 From: Mark Maday Date: Thu, 24 Jan 2013 18:24:37 -0800 Subject: [PATCH] Fix for null values showing "null" string in input fields. Must resort to empty string in IE otherwise "null" shows up. Refer to http://stackoverflow.com/questions/5387038/null-values-shown-in-form-fie lds-in-ie --- src/js2form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js2form.js b/src/js2form.js index 0bc034a..7835322 100644 --- a/src/js2form.js +++ b/src/js2form.js @@ -84,7 +84,7 @@ var js2form = (function() } else if (_inputOrTextareaRegexp.test(field.nodeName)) { - field.value = value; + field.value = value || ''; } else if (/SELECT/i.test(field.nodeName)) {