0

Below CSS will add incremental number in options, just change target option id/class

#select2 {
  counter-reset: option-counter;
}
#select2 option {
  counter-increment: option-counter;
}
#select2 option:before {
  content: counter(option-counter) ". ";
}

admin Asked question March 22, 2024
Add a Comment