logo
Select2
Ajax
Initializing search
    select2/select2
    select2/select2
    • Home
      • Installation
      • Basic usage
      • Builds and modules
      • Getting help
      • Common problems
      • Options API
      • Global defaults
      • data-* attributes
    • Appearance
    • Options
      • The Select2 data format
      • Ajax (remote data)
      • Arrays
    • Dropdown
    • Selections
    • Dynamic option creation
    • Placeholders
    • Search
      • Add, select, or clear items
      • Retrieving selections
      • Methods
      • Events
    • Internationalization
      • Adapters and decorators
        • Selection
        • Array
        • Ajax
        • SelectAdapter
        • Results
        • Dropdown
      • What's new in 4.0
      • Migrating from Select2 3.5

    Ajax

    The AjaxAdapter implements support for creating results from remote data sources using AJAX requests.

    AMD Modules:

    select2/data/ajax

    June 2, 2026 GitHub
    codingjoe Kevin Brown-Silva
    Made with Material for MkDocs