Method Overrides

jQuery

Category: Method Overrides


jQuery UI overrides several built-in jQuery methods in order to provide additional functionality. When using these overrides, it’s important to make sure that jQuery UI is loaded. If jQuery UI is not loaded, the methods will still exist, but the expected functionality will not be available, resulting in bugs that may be hard to track down.

.toggleClass()

Add or remove one or more classes from each element in the set of matched elements, depending on either the class’s presence or the value of the switch argument, while animating all style changes.