Trying to implement a custom select dropdown using select2 plugin Is it possible to have the selected value to display only the actual option \'value\' instead of the text,
Simply use the formatSelection option. It provides the text and value of the selected option and sets the selection's text.
function formatSelection(val) { return val.id; } $('select').select2({ formatSelection: formatSelection, width: 300 });
Fiddle