From 55389673814dc96d5477f679052013db5e10ea66 Mon Sep 17 00:00:00 2001 From: Varunram Date: Fri, 16 Jun 2017 19:18:21 +0530 Subject: [PATCH] Add event.preventDefault documentation to javascript.md --- docs/4.0/getting-started/javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/4.0/getting-started/javascript.md b/docs/4.0/getting-started/javascript.md index 003ebdb7b9..bd2f969ffe 100644 --- a/docs/4.0/getting-started/javascript.md +++ b/docs/4.0/getting-started/javascript.md @@ -36,7 +36,7 @@ $(document).off('.alert.data-api') Bootstrap provides custom events for most plugins' unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. `show`) is triggered at the start of an event, and its past participle form (ex. `shown`) is triggered on the completion of an action. -All infinitive events provide [`preventDefault()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault) functionality. This provides the ability to stop the execution of an action before it starts. +All infinitive events provide [`preventDefault()`](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault) functionality. This provides the ability to stop the execution of an action before it starts. Returning false from an event handler will also automatically call `preventDefault()` {% highlight js %} $('#myModal').on('show.bs.modal', function (e) {