lib/hatemile/implementation/accessible_form_implementation.rb
##
# Validate the field when its value change.
#
# @param field [Hatemile::Util::Html::HTMLDOMElement] The field.
# @param list_attribute [String] The list attribute of field with
#   validation.
Validate the field when its value change.
Validate the field when its value change .
def validate(field, list_attribute)
        generate_validation_scripts unless @scripts_added
        @id_generator.generate_id(field)
        @script_list_fields_with_validation.append_text(
          "hatemileValidationList.#{list_attribute}.push(" \
          "'#{field.get_attribute('id')}');"
        )
      end
def validate ( field , list_attribute ) generate_validation_scripts unless @scripts_added @id_generator . generate_id ( field ) @script_list_fields_with_validation . append_text ( "hatemileValidationList.#{list_attribute}.push(" "'#{field.get_attribute('id')}');" ) end
Validate the field when its value change.
Validate the field when its value change .
field
None
list_attribute
The list attribute of field with validation.
The list attribute of field with validation .