I need to delete a line from a list. it changes an input items.
Example:
linha 01
linha 02
linha 03
If I delete line two now it stays:
linha 01
linha 03
But I did not want it that way, so I need it to change and leave it like this:
linha 01
linha 02
So I thought about doing this:
for (i = 1; i < quantidadeTR; i++) {
$("input:text[name^='item']").val(i);
}
quantityRT = is equal to the total of line taken by a function.
With the code above I have the result:
linha 02
linha 02
I have tried this way too but it gives the same error:
var count = 1;
while ( count < quantidadeTR ) {
$("input:text[name^='item']").val(count);
count++;
};