2
I’m having a problem generating a sequence for an "Indice".
As an example, if I took the number 1.2, I wanted to generate the number 1.2.4 as a sequence or if I took 1.2.2 I wanted to generate 1.2.2.1
<select>
<option>1.1 </option>
<option>1.1.1 </option>
<option>1.1.2 </option>
<option>1.2 </option>
<option>1.2.1 </option>
<option>1.2.2 </option>
<option>1.2.3 </option>
<option>1.2.3.1 </option>
<option>1.3 </option>
<option>1.3.1 </option>
</select>
in case I would have to check how many elements this "Indice" would have and generate a new, but I’m having trouble with his logic.
If anyone can help. Thanks in advance.
What is the default generation of these numbers? There is a maximum value for each sub-version?
– Don't Panic
It has to be inside a
<select>
?? If it can be a common list typeul li
is very easy to solve...– hugocsl
What do you mean "generate"? You want to create a new
option
with the sequence?– Sam
In this case, I just wanted to generate the next sequence, no matter if it is an input, span or other tags, and there is no limit on the generation or a maximum value
– Norion