]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add mention of jQuery conflict for Abide docs 12235/head
authorAlexander Kucheryuk <3331946+alexkuc@users.noreply.github.com>
Sun, 6 Jun 2021 19:15:19 +0000 (22:15 +0300)
committerAlexander Kucheryuk <3331946+alexkuc@users.noreply.github.com>
Sun, 6 Jun 2021 19:15:19 +0000 (22:15 +0300)
docs/pages/abide.md

index b47b12a2d4c2436961e1b983eb26e2ea8a075417..461381ae4c905582536919a49fa4ae985b6a4ffd 100644 (file)
@@ -458,6 +458,10 @@ $(document).foundation();
 <input id="max" type="number" data-validator="greater_than" data-greater-than="min" required>
 ```
 
+## jQuery Conflict
+
+When creating a type `submit` button, make sure to _avoid_ using `name="submit"` otherwise your form won't submit. This is due to [jQuery limitations](https://api.jquery.com/submit/) (see Additional Notes).
+
 ## Accessibility
 
 By default, Abide will add some accessibility attributes to your form elements. It is highly recommended to keep this option active as it improve the usability of your forms for disabled people. [Lean more about Accessibility in Foundation](accessibility.html).