|
@@ -927,7 +927,7 @@ function inputShowOneValiDate(e)
|
|
|
e.find(array[a]).each(function()
|
|
|
{
|
|
|
var parent = $(this).parent();
|
|
|
- if($(this).attr('class') != 'editor' && $(this).attr('class').indexOf('validates') > -1 && parent.find('label').length && parent.find('label').html().indexOf('选填') == -1)
|
|
|
+ if($(this).attr('class') && $(this).attr('class') != 'editor' && $(this).attr('class').indexOf('validates') > -1 && parent.find('label').length && parent.find('label').html().indexOf('选填') == -1)
|
|
|
{
|
|
|
$(this).addClass('validate[required]');
|
|
|
}
|