Good morning, gentlemen,
I'm creating a system of contracts and I have a question about how to come up with a certain idea.
Because the contract works by clocks and paragraphs, I need to add indexes dynamically.
The idea would look like this:
1 - Primeira Clausura.
1.1 - Primeiro paragrafo.
1.2 - Segundo Paragrafo
...
2 - Segunda Clausura.
2.1 - Primeiro paragrafo da segunda clausura.
2.2 - Segundo paragrafo da segunda clausura.
...
3 - Terceira Clausura.
3.1 - Terceiro paragrafo da Terceira clausura.
3.2 - STerceiro paragrafo da Terceira clausura.
...
I have a js function that adds these paragraphs through a textarea, ie does not write to a bank and does not receive anything from a bank, so if the user deletes the paragraph 2.1
for example, the 2.2
paragraph goes automatically to be 2.1
.
Well any idea already helps a lot, thank you! Hugs!