- How to add image + text inside dropdown options in X-Editable ? The required shown in below image


Assuming the dropdown is a Select2 widget that your code can access, use the templating features:
You will likely need both, although you should be able to use the same callback function for both templates (assuming you want dropdown and selected items to look the same.