src/jquery.validation.js
function resetOneError(inputName, input, label, container, group) {

            delete errors[inputName];

            if (container) {

                //window.Validation.hasScrolled = false;

                if (options.submit.settings.inputContainer) {
                    (group ? label : input).parentsUntil(node, options.submit.settings.inputContainer).removeClass(options.submit.settings.errorClass);
                }

                label && label.removeClass(options.submit.settings.errorClass);

                input.removeClass(options.submit.settings.errorClass);

                if (options.submit.settings.display === 'inline') {
                    container.find('[' + _data.errorList + ']').remove();
                }

            } else {

                if (!input) {
                    input = node.find('[name="' + inputName + '"]');

                    if (!input[0]) {

                        // {debug}
                        options.debug && window.Debug.log({
                            'node': node,
                            'function': 'resetOneError()',
                            'arguments': '[name="' + inputName + '"]',
                            'message': 'ERROR - Unable to find input by name "' + inputName + '"'
                        });
                        // {/debug}

                        return false;
                    }
                }

                input.trigger('coucou' + resetSuffix);
            }

        }
function resetOneError(inputName, input, label, container, group) {

            delete errors[inputName];

            if (container) {

                //window.Validation.hasScrolled = false;

                if (options.submit.settings.inputContainer) {
                    (group ? label : input).parentsUntil(node, options.submit.settings.inputContainer).removeClass(options.submit.settings.errorClass);
                }

                label && label.removeClass(options.submit.settings.errorClass);

                input.removeClass(options.submit.settings.errorClass);

                if (options.submit.settings.display === 'inline') {
                    container.find('[' + _data.errorList + ']').remove();
                }

            } else {

                if (!input) {
                    input = node.find('[name="' + inputName + '"]');

                    if (!input[0]) {

                        // {debug}
                        options.debug && window.Debug.log({
                            'node': node,
                            'function': 'resetOneError()',
                            'arguments': '[name="' + inputName + '"]',
                            'message': 'ERROR - Unable to find input by name "' + inputName + '"'
                        });
                        // {/debug}

                        return false;
                    }
                }

                input.trigger('coucou' + resetSuffix);
            }

        }
function resetOneError ( inputName , input , label , container , group ) { delete errors [ inputName ] ; if ( container ) { //window.Validation.hasScrolled = false; if ( options . submit . settings . inputContainer ) { ( group ? label : input ) . parentsUntil ( node , options . submit . settings . inputContainer ) . removeClass ( options . submit . settings . errorClass ) ; } label && label . removeClass ( options . submit . settings . errorClass ) ; input . removeClass ( options . submit . settings . errorClass ) ; if ( options . submit . settings . display === 'inline' ) { container . find ( '[' + _data . errorList + ']' ) . remove ( ) ; } } else { if ( ! input ) { input = node . find ( '[name="' + inputName + '"]' ) ; if ( ! input [ 0 ] ) { // {debug} options . debug && window . Debug . log ( { 'node' : node , 'function' : 'resetOneError()' , 'arguments' : '[name="' + inputName + '"]' , 'message' : 'ERROR - Unable to find input by name "' + inputName + '"' } ) ; // {/debug} return false ; } } input . trigger ( 'coucou' + resetSuffix ) ; } }
Remove an input error.

@param {String} inputName Key reference to delete the error from "errors" global variable
@param {Object} input jQuery object of the input
@param {Object} label jQuery object of the input's label
@param {Object} container jQuery object of the "errorList"
@param {String} [group] Name of the group if any (ex: used on input radio)
Remove an input error .