hello every body i want write a code to get input and then add that info in table under input
th,
td {
border: 1px solid black;
background-color: white;
border-radius: 10px;
}
th {
background-color: rgb(255, 255, 46);
}
<table style="width:100%">
<tr>
<th style="width:50%;">x</th>
<th style="width:50%;">y</th>
</tr>
</table>
if you know i will happy to how i can do it
2
Answers
To achieve this, you will need Javascript functions keyDown, keyUp or keyPress (Deprecated).
Using JS, you get the input value and then write it on the desired output element as shown below.
I have added two input elements to the HTML, one to handle keydown, and the other keyup.
You’d need to use some JavaScript.
x
andy
on change of the input boxes