diff --git a/javascript.html b/javascript.html index e0ddae0a1d..f54a21523d 100644 --- a/javascript.html +++ b/javascript.html @@ -222,8 +222,6 @@ $('#myModal').on('show.bs.modal', function (e) { {% endhighlight %} - -

Usage

Via data attributes

@@ -337,74 +335,31 @@ $('#myModal').on('hidden.bs.modal', function () { - -
- + +
+ + +

Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.

- -

Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.

- -

Within a navbar

- - -

Within tabs

-
- +
+
+
+ + +

Within tabs

+
+ +
-
+ - - - -

Via data attributes

-

Add data-toggle="dropdown" to a link or button to toggle a dropdown.

+

Via data attributes

+

Add data-toggle="dropdown" to a link or button to toggle a dropdown.

{% highlight html %} {% endhighlight %} -

Via JavaScript

-

Call the dropdowns via JavaScript:

+

Via JavaScript

+

Call the dropdowns via JavaScript:

{% highlight js %} $('.dropdown-toggle').dropdown() {% endhighlight %} -

Options

-

None

+

Options

+

None

-

Methods

-

$().dropdown('toggle')

-

A programmatic api for toggling menus for a given navbar or tabbed navigation.

- +

Methods

+

$().dropdown('toggle')

+

A programmatic api for toggling menus for a given navbar or tabbed navigation.

+ - -
-