Board Logo

bug with empty select
super-manu - 4/17/2007 at 03:54 PM

hi,
i have a dynamic select and if the tag is empty :
<select></select> the validator bug because the value is null.
i added "if(s_value!=null)" on line 135 before ":

this.a_fields[n_key]['v'] = s_value.replace(/(^s+)|(s+$)/g, '');

same
if(s_value!=null) this.a_fields[n_key]['v'] = s_value.replace(/(^s+)|(s+$)/g, '');


Manu.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/