When adding a question, everything is fine.

Pressing + does not work, when pressed to the same td, input should be added.

Also tell me how to renumber the rows in the table if one of the rows has been deleted.

Jsfiddle code.

  • @Jashka, If you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Vitalina

1 answer 1

There you have a logical error in finding the element to which you add the additional <input /> , you can make it easier: http://jsfiddle.net/mjdypw9h/15/

In a good way, there you can do with just one id and all calculations are relatively relative through .closest() / .find()