The jQuery plugin namespace.
Methods
-
<static> vulcanval(inspectField [, fieldName])
-
Invoke over instantiated elements.
Inspect the validation status of an specific field in
<form>.Parameters:
Name Type Argument Description inspectFieldString With value
'inspectField'.fieldNameString <optional>
The field name to inspect.
Returns:
It will return an error message if field is invalid, otherwise
false.- Type
- String | Boolean
-
<static> vulcanval(settings)
jQuery plugin to instantiate the validators in forms.
-
Defines validation functionalities over form elements.
This can be instantiated on forms or any form elements with a valid attribute
name:<form><input>withtypedifferent thanfile,submit,image,buttonandreset<textarea><select>
Also, the plugin can be instantiated on any element with a valid input name in attribute
data-vv-namewhich will be treated as a normal<input>. This is useful to create custom fields/entries.Parameters:
Name Type Description settingssettings Instance settings. This is used to configure the whole validation process.
- See:
-
- Also see the demos to learn how to implement this method.
Returns:
The same jQuery object.
- Type
- external:jQuery
-
<static> vulcanval(getMap)
-
Get the data map extracted from the
<form>.If the instance was configured with the setting settings.enableNestedMaps as
true, the map returned will be nested. Otherwise it will be plain.This method can also be used over
<form>elements without being instantiated and will return a plain data map with all its inputs, selects and textareas values.Parameters:
Name Type Description getMapString With value
'getMap'.Returns:
The data map.
- Type
- map
-
<static> vulcanval(validateFieldset, fieldsetName)
-
Invoke over instantiated elements.
Validate visually all fields of an specific fieldset in
<form>.Parameters:
Name Type Description validateFieldsetString With value
'validateFieldset'.fieldsetNameString The fieldset name to validate.
Returns:
The same jQuery object.
- Type
- external:jQuery
-
<static> vulcanval(validateField, fieldName)
-
Invoke over instantiated elements.
Validate visually an specific field in
<form>.Parameters:
Name Type Description validateFieldString With value
'validateField'.fieldNameString The field name to validate.
Returns:
The same jQuery object.
- Type
- external:jQuery
-
<static> vulcanval(validate)
-
Invoke over instantiated elements.
Validate visually all fields in
<form>.Parameters:
Name Type Description validateString With value
'validate'.Returns:
The same jQuery object.
- Type
- external:jQuery
-
<static> vulcanval(resetFieldset, fieldsetName)
-
Invoke over instantiated elements.
Reset all fields in fieldset validation state. This removes all current error states in those fields.
Parameters:
Name Type Description resetFieldsetString With value
'resetFieldset'.fieldsetNameString Fieldset name to reset.
Returns:
The same jQuery object.
- Type
- external:jQuery
-
<static> vulcanval(inspect)
-
Invoke over instantiated elements.
Inspect the validation status of the
<form>.Parameters:
Name Type Description inspectString With value
'inspect'.Returns:
A plain object with keys as field names and values with error messages if they have. If form is valid,
falsewill be returned.- Type
- Object | String | Boolean
-
<static> vulcanval(inspectFieldset, fieldsetName)
-
Invoke over instantiated elements.
Inspect the validation status of all fields in fieldset in the
<form>.Parameters:
Name Type Description inspectFieldsetString With value
'inspectFieldset'.fieldsetNameString The fieldset name to inspect.
Returns:
A plain object with keys as field names and values with error messages if they have. If fieldset is valid,
falsewill be returned.- Type
- Object | String | Boolean
-
<static> vulcanval(resetField, fieldName)
-
Invoke over instantiated elements.
Reset specific field validation state. This removes all current error states from field.
Parameters:
Name Type Description resetFieldString With value
'resetField'.fieldNameString The name of the field.
Returns:
The same jQuery object.
- Type
- external:jQuery
-
<static> vulcanval(reset)
-
Invoke over instantiated elements.
Reset the
<form>validation state. This removes all current error states.Parameters:
Name Type Description resetString With value
'reset'.Returns:
The same jQuery object.
- Type
- external:jQuery