Add two ul inside option select2

I need to add ul inside the option, but when I add and try the code
Deletes ul automatically and does not appear in the code in the browser.

That’s the result I want.

My Code:

    business
  • Implementation project 1
  • Implementation project 2
  • entitlement

You want <optgroup>s. Here’s the documentation for that: https://select2.org/options

I used but that’s not what I want.
I want every text to be considered one option.

I don’t understand what you mean. The screenshot you showed above, in regular HTML, would be accomplished as follows:

<select>
  <optgroup label="Business">
      <option>Implementation project 1</option>
      <option>Implementation project 2</option>
  </optgroup>
  <optgroup label="Entitlement">
    ...
  </optgroup>
</select>

If you are hard-coding your selections in your HTML, you can use a structure exactly like the above; if you’re storing the data in JavaScript array, or getting it from a remote data source, then you can set up the data structure as documented in the link I provided in my previous answer.