select2 dropdown selected value code example Example: select2 $('.js-example-basic-single').select2({ placeholder: 'Select an option' });