Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkboxlist first input only enable #45

Open
Z2ool opened this issue Mar 25, 2018 · 1 comment
Open

Checkboxlist first input only enable #45

Z2ool opened this issue Mar 25, 2018 · 1 comment

Comments

@Z2ool
Copy link

Z2ool commented Mar 25, 2018

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;
					}
				}
        		}
         }
@f3l1x
Copy link
Member

f3l1x commented Apr 2, 2018

Hi, could you please send a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants