Fill an input of a case from a selected row with the value of another case fromanother selected row.
Fill an input of a case from a selected row with the value of another case fromanother selected row.
Hello,
I would like to fill an input of a case from a selected row with the value of another case from another selected row.
Let say I have two tables, the table A containing input fields on its 2nd column and the table B containing values on its first column.
I want to fill the input of the input cell from the selected row of the table A when I select a row of the table B.
I get the value from the table B like this:
var data = tableB.row('.selected').data()[0];
How could I access to the input field from the selected row of the tableA and set it with data
?
Is there anything like this ?
tableA.row('.selected').setInput(data, 1);
If not, is there a way to get the HTML id
from the input field ?
I managed to get the full HTML input
tag, is there any other way than parsing it with $().attr or so, to get the id
?