Hello,
Not sure if this is it, but in the button15_click function your last function is a collapse and not expansion while all the others are .expand()
Ehab
my problem is that when i press the button non of them is made except the third one ehalsharif92
Do you want to have a fixed number of inputs or a dynamic number of inputs ?
If you want to have a dynamic number then you should create new elements by injecting them in the DOM
,if its a fixed number your method will work
Mark all elements in the row with the same id number but with different prefixes
so first row will be input1(for text input) plus1 for (the plus button) minus1 ( for the minus buttom)
row 2 will be input 2 plus2 minus2
now if plus is clicked you expand the whole next row if minus is clicked you collapse the whole same row
Hope i could help
no no no
I want the user to click on the + button if he wants to add another field to write a name