Hi, I'm making a list of items in a <select>
and I want to split the options.
For this I want to show different 'categories' as a title (which could not be selected). The problem is that I already tried the conventional to give hops of line in HTML and it has not worked for me. Do you have any idea how to do it?
My idea is that the list is like this when displayed:
Categoría 1 <-- Este elemento no se puede seleccionar Elemento seleccionable Elemento seleccionable Elemento seleccionable Elemento seleccionable Categoría 2 <-- Este elemento no se puede seleccionar Elemento seleccionable Elemento seleccionable Elemento seleccionable Elemento seleccionable Categoría 3 <-- Este elemento no se puede seleccionar Elemento seleccionable Elemento seleccionable Elemento seleccionable Elemento seleccionable
As a reference, I put this site where they do something similar: Convert World .
I do not ask you to design the list, I just want to know how to apply the line break and the elements that can not be selected.