i have to create an input with line break inside.
Attempted to do like this, (using Choices.js library for multiple autocomplete tag) :
<select id="choices1" class="form-control" name="choices-multiple-remove-button" placeholder="Compétences" multiple>
js:
arrayOfObjects.forEach(function(obj){
var options = '<option value="' + obj.id + '">' + obj.name + '\n' + obj.description +'</option>';
choices1.insertAdjacentHTML('beforeend',options);
});
As you can see, i want to have the description under the name line. Is it impossible to create a hack in order to have '\n' or something else works ?