You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<inputvalue="too many spaces obviously"class="validate[required,custom[onlyLetterNumber]]"type="text"name="special"id="special"data-prompt-position="bottomRight" />
If "inline" is applied the prompt is attached after the corresponding input field with position set to "relative". You can specify an optional target container to which the prompt should be attached by providing the id of this container in the field's **data-prompt-target** attribute.
151
-
152
149
### Prompt Position Adjustment
153
150
154
151
Prompt position can be adjusted by providing shiftX and shiftY with position type in the field's **data** attribute.
@@ -211,26 +208,6 @@ All calls to validationEngine() are chainable, so one can do the following:
You can use a div acting as a container using the class *"validationEngineContainer"*. Please be aware that events like submit() won't work and you will have to call the action 'validate' to validate the form.
Unregisters any bindings that may point to jQuery.validationEngine.
224
+
Unregisters any bindings that may point to jQuery.validaitonEngine.
248
225
249
226
```js
250
227
$("#formID1").validationEngine('detach');
@@ -274,7 +251,7 @@ Displays a prompt on a given element. Note that the prompt can be displayed on a
274
251
The method takes four parameters:
275
252
1. the text of the prompt itself
276
253
2. a type which defines the visual look of the prompt: 'pass' (green), 'load' (black) anything else (red)
277
-
3. an optional position: either "topLeft", "topRight", "bottomLeft", "centerRight", "bottomRight", "inline". Defaults to *"topRight"*
254
+
3. an optional position: either "topLeft", "topRight", "bottomLeft", "centerRight", "bottomRight". Defaults to *"topRight"*
278
255
4. an optional boolean which indicates if the prompt should display a directional arrow
279
256
280
257
```html
@@ -336,24 +313,16 @@ Name of the event triggering field validation, defaults to *blur*.
336
313
### scroll
337
314
Determines if we should scroll the page to the first error, defaults to *true*.
338
315
339
-
### scrollOffset
340
-
The amount to offset the scroll in px. Useful if there are fixed elements at the top of the page.
341
-
342
316
### binded
343
-
If set false, does not attach blur events and only validates on the form submit.
317
+
If set to true, it remove blur events and only validate on submit.
344
318
345
319
### promptPosition
346
-
Where should the prompt show? Possible values are "topLeft", "topRight", "bottomLeft", "centerRight", "bottomRight", "inline". Defaults to *"topRight"*. Default position adjustment could also be provided.
347
-
"topLeft" to "bottomRight" are absolutely positioned.
348
-
If "inline" is applied the prompt is attached after the corresponding input field with position set to "relative". By adding an optional "data-prompt-target" attribute to the field you can specify the id of an element to which the prompt should be appended alternatively. (see "Per Field Prompt Direction" for more details)
320
+
Where should the prompt show? Possible values are "topLeft", "topRight", "bottomLeft", "centerRight", "bottomRight". Defaults to *"topRight"*.
321
+
Default position adjustment could also be provided.
349
322
350
323
### showOneMessage
351
324
Only display the first incorrect validation message instead of normally stacking it. It will follows the validation hierarchy you used in the input and only show the first error.
352
325
353
-
### showPrompts
354
-
If set to false, prompts never show.
355
-
356
-
357
326
### ajaxFormValidation
358
327
If set to true, turns Ajax form validation logic on. Defaults to *false*.
359
328
Form validation takes place when the validate() action is called or when the form is submitted.
@@ -393,30 +362,31 @@ messages or ID messages.
393
362
These custom messages are declared in this manner:
Using the validationEngine with modal & dialog plugins & kendo UI widgets
840
+
Using the validationEngine with modal & dialog plugins
875
841
---
876
-
Modal elements, have a tendency to take a high z-index, which in turn can interfer with the plugin. In the case of modal jQuery ui, if you want to change the z-index you can do this easily in your css.
877
-
878
-
.ui-dialog .formError
879
-
880
-
881
-
For other cases please modify the css yourself, we will not support custom frameworks in the base code. You can have more information about implementing the engine with modal views here:
842
+
You can have more information about implementing the engine with modal views here:
0 commit comments