Skip to content

Commit

Permalink
πŸ“š fix code sample in documentation (#2498)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-aumjaud committed May 15, 2024
1 parent c225c8d commit d37fe55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/content/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ Here is an example of an input that uses the [`hx-on`](/attributes/hx-on) attrib
onkeyup="this.setCustomValidity('') // reset the validation on keyup"
hx-on:htmx:validation:validate="if(this.value != 'foo') {
this.setCustomValidity('Please enter the value foo') // set the validation error
htmx.find('#foo-form').reportValidity() // report the issue
htmx.find('#example-form').reportValidity() // report the issue
}">
</form>
```
Expand Down

0 comments on commit d37fe55

Please sign in to comment.