Skip to content

Commit

Permalink
docs/getting-started/javascript.md: Hyperlink preventDefault() mention
Browse files Browse the repository at this point in the history
[skip sauce]
  • Loading branch information
cvrebert committed Oct 20, 2015
1 parent 5b113b2 commit dd78e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ $.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Boot

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` 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.

{% highlight js %}
$('#myModal').on('show.bs.modal', function (e) {
Expand Down

0 comments on commit dd78e75

Please sign in to comment.