live-form-validation icon indicating copy to clipboard operation
live-form-validation copied to clipboard

Checkboxlist first input only enable

Open Z2ool opened this issue 7 years ago • 1 comments

For checkboxlist i need it validation rules are present always onle fist enable chekbox. FIX code is

// Fix for CheckboxList - validation rules are present always only on ENABLE first input 
 if (elem.name && elem.name.match(/\[\]$/) && elem.type.toLowerCase() == 'checkbox') {
        	if(!elem.form.elements[elem.name].tagName)
			{
				for(var i=0 ; i <elem.form.elements[elem.name].length ; i++)
				{
					if(elem.form.elements[elem.name][i].disabled == false)
					{
						elem = elem.form.elements[elem.name][i];
						break;
					}
				}
        		}
         }

Z2ool avatar Mar 25 '18 13:03 Z2ool

Hi, could you please send a PR?

f3l1x avatar Apr 02 '18 10:04 f3l1x