I came across the following answer: dynamically-add-remove-fields-on-input and don't know the site policy for this specific scenario.
OP asks for the following:
The following code allows users to enter multiple optional quantity fields after first filling in a value of the current quantity input. If the input field contains a value it will then display the next quantity field, if not, it will remove/not display it.
I requested the following information in the comments.
Don't you require a cascading effect?
Thanks for pointing that out, I would prefer it to cascade. Should I update my question with this markup or would it be better to ask a new question?
Since an answer was already available, we suggested OP to write a follow-up question, in order not to invalidate the answer. However, no follow-up question was asked.
Then the new answer was posted, taking into account the cascading requirement from the comments, not available in the question.
How should we proceed with this? Is the answer off-topic or is it acceptable? Does this new answer invalidate the accepted answer?