| Recommend this page to a friend! | 
| Classes of fathurrahman | mnTemplate | public/asset/vendor/select2/docs/pages/03.configuration/02.defaults/docs.md | Download | 
  | 
|||||||||||||||||||||
title: Global defaults taxonomy: 
In some cases, you need to set the default options for all instances of Select2 in your web application. This is especially useful when you are migrating from past versions of Select2, or you are using non-standard options like custom AMD builds. Select2 exposes the default options through  When setting options globally, any past defaults that have been set will be overridden. Default options are only used when an option is requested that has not been set during initialization. You can set default options by calling  
Nested optionsTo set a default values for cache, use the same notation used for HTML  
Resetting default optionsYou can reset the default options to their initial values by calling  |