Skip to content

Commit fad78dc

Browse files
Copilotbytestream
andauthored
Fix typos and formatting issues in documentation
Agent-Logs-Url: https://github.com/jquery-validation/validation-content/sessions/8bc572b0-b97a-4158-8713-9aa7a99fa1a8 Co-authored-by: bytestream <1788397+bytestream@users.noreply.github.com>
1 parent 409216a commit fad78dc

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

_entries/required-method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Makes the element required.
1313

1414
## Description
1515

16-
Return false, if the element is empty (text input) or unchecked (radio/checkbox) or if nothing is selected (select). Works with text inputs, selects, checkboxes and radio buttons. To force a user to select an option from a select box, provide an empty option element like <option value="">Choose...</option> Note that white spaces are considered valid.
16+
Return false, if the element is empty (text input) or unchecked (radio/checkbox) or if nothing is selected (select). Works with text inputs, selects, checkboxes and radio buttons. To force a user to select an option from a select box, provide an empty option element like `<option value="">Choose...</option>`. Note that white spaces are considered valid.
1717

1818
## Usage
1919

_entries/validate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This method sets up event handlers for submit, focus, keyup, blur and click to t
6161

6262
**groups** *(Object)*
6363

64-
Specify grouping of error messages. A group consists of an arbitrary group name as the key and a space separated list of element names as the value. Use errorPlacement to control where the group message is placed. Example: Use a table layout for the form, placing error messags in the next cell after the input. $("#myform").validate({ groups: { username: "fname lname" }, errorPlacement: function(error, element) { if (element.attr("name") == "fname" || element.attr("name") == "lname" ) { error.insertAfter("#lastname"); } else { error.insertAfter(element); } } });
64+
Specify grouping of error messages. A group consists of an arbitrary group name as the key and a space separated list of element names as the value. Use errorPlacement to control where the group message is placed. Example: Use a table layout for the form, placing error messages in the next cell after the input. $("#myform").validate({ groups: { username: "fname lname" }, errorPlacement: function(error, element) { if (element.attr("name") == "fname" || element.attr("name") == "lname" ) { error.insertAfter("#lastname"); } else { error.insertAfter(element); } } });
6565

6666
**normalizer** *(Function)*
6767

@@ -205,4 +205,4 @@ This method sets up event handlers for submit, focus, keyup, blur and click to t
205205

206206
**ignoreTitle** *(Boolean)* (default: `false`)
207207

208-
Set to skip reading messages from the title attribute, helps to avoid issues with Google Toolbar; default is false for compability, the message-from-title is likely to be completely removed in a future release. Example: Configure the plugin to ignore title attributes on validated elements when looking for messages. $("#myform").validate({ ignoreTitle: true });
208+
Set to skip reading messages from the title attribute, helps to avoid issues with Google Toolbar; default is false for compatibility, the message-from-title is likely to be completely removed in a future release. Example: Configure the plugin to ignore title attributes on validated elements when looking for messages. $("#myform").validate({ ignoreTitle: true });

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: jQuery Validation Plugin
44
---
55

6-
This jQuery plugin makes simple clientside form validation easy, whilst still offering plenty of customization options. It makes a good choice if you're building something new from scratch, but also when you're trying to integrate something into an existing application with lots of existing markup. The plugin comes bundled with a useful set of validation methods, including URL and email validation, while providing an API to write your own methods. All bundled methods come with default error messages in english and translations into 37 other languages.
6+
This jQuery plugin makes simple clientside form validation easy, whilst still offering plenty of customization options. It makes a good choice if you're building something new from scratch, but also when you're trying to integrate something into an existing application with lots of existing markup. The plugin comes bundled with a useful set of validation methods, including URL and email validation, while providing an API to write your own methods. All bundled methods come with default error messages in English and translations into 37 other languages.
77

88
For a quick overview of what this plugin provides, check out this [Webucator](https://www.webucator.com/) video (they also provide [jQuery trainings](https://www.webucator.com/webdesign/jquery.cfm)):
99

0 commit comments

Comments
 (0)