The toggle method toggles the dropdown.
Note: The data-toggle="dropdown" attribute is required regardless of whether you call the dropdown() method.