Edit in JSFiddle

$(document).ready(function() {

var data = [
    { id: 0, text: 'enhancement' }, 
    { id: 1, text: 'bug' }, 
    { id: 2, text: 'duplicate' }, 
    { id: 3, text: 'invalid' }, 
    { id: 4, text: 'wontfix' }
];


  $('select').select2({
    placeholder:'Select a state',
    data: data,
    minimumResultsForSearch: Infinity //Hiding the search box
  });
});
<select name="status">
</select>

              

External resources loaded into this fiddle: