Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -214,6 +214,7 @@ |
215 | 215 | function showIfSelected(input_id, options_array, div_id) { |
216 | 216 | the_input = document.getElementById(input_id); |
217 | 217 | the_div = document.getElementById(div_id); |
| 218 | + if ( the_div == null ) { return; } |
218 | 219 | for (var i in options_array) { |
219 | 220 | if (the_input.value == options_array[i]) { |
220 | 221 | the_div.style.display = ''; // return to default |