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.
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.
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()
Source: https://ru.stackoverflow.com/questions/408464/
All Articles