Skip to content

Change "No results found" message #296

Closed Answered by codingjoe
azegas asked this question in Q&A
Discussion options

You must be logged in to vote

Scratch that, I found a test in the JS code that should allow you to override a single message, see also: https://github.com/select2/select2/blob/07bd61a0e8b928d490c86f61d6abbdcb61f4bbd4/tests/options/translation-tests.js#L63-L87

Just pass the following options:

$.select2({
    language: {
        noResults: () => 'My custom message'
    }
})

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@azegas
Comment options

@codingjoe
Comment options

Answer selected by codingjoe
@azegas
Comment options

@codingjoe
Comment options

@azegas
Comment options

@codingjoe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants