Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

select2 disable search

$("#js-example-basic-hide-search").select2({
    minimumResultsForSearch: Infinity
});
Comment

select2 search disable

$("#js-example-basic-hide-search").select2({
    minimumResultsForSearch: -1
});
Comment

select2 disable search bar

<select class="form-select" data-minimum-results-for-search="Infinity">
    <option></option>
    <option value="1">First</option>
    <option value="2">Second</option>
    <option value="3">Third</option>
</select>
Comment

PREVIOUS NEXT
Code Example
Javascript :: remove hidden attribute in js 
Javascript :: enable version 12 node glitch 
Javascript :: regex between brackets multiline line 
Javascript :: jquery get checked checkbox values array 
Javascript :: console.log object at current state 
Javascript :: add quotes to array values javascript 
Javascript :: delete cr 
Javascript :: get url without query string 
Javascript :: read json file flutter 
Javascript :: credit card regex javascript 
Javascript :: get pods on specific node 
Javascript :: jest reset spy 
Javascript :: remove first 3 characters from string javascript 
Javascript :: javascript date set weeks 
Javascript :: vuejs cdn 
Javascript :: typescript prevent node modules 
Javascript :: how to find angle between two points 
Javascript :: ngmodeloptions standalone 
Javascript :: activate es6 module node package.json 
Javascript :: Scrool to the bottom of a div 
Javascript :: python json string to object 
Javascript :: yup only characters regex validation react 
Javascript :: dont drag img 
Javascript :: js reverse array loop 
Javascript :: install jmeter mac 
Javascript :: how to change input required message react 
Javascript :: adding font awesome to npm or react 
Javascript :: font weight react native 
Javascript :: jquery get value radio by name 
Javascript :: change placeholder text jquery 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =