Hello. Is it possible to impose a button to remove this <option> on the <option> from selectbox? and how to do it? Something like that

something like that

  • 3
    Not. You need to make your custom select - Vasily Barbashev
  • @ Vasily Barbashev, how can you somehow adjust the element of the picture, then process the click on the element? - Anton Burak
  • 2
    No, it is better to make a custom select, there are many of them on the Internet, the same select2 . - Vasily Barbashev

1 answer 1

Well, in general, you can try to do this. You need to insert something into the <option> (text "delete" or a picture), align it, assign a click handler, and delete this <option> by clicking. But in general, the approach is not correct, because in this case, the browser is in charge of everything, so it’s not clear how it will work and whether it will, let alone be multi-browser.