function addElement() {
var ni = document.getElementById(‘occupation’).value;
var numi = document.getElementById(‘theValue’);
numi.value = ni;
i use this code for add one text box values to another but this code work only for add one value not multiple value so plz tell me how can i add multiple values.
It’s difficult to understand from your question which of these you are doing:
If you want 1
If you want 2
You might even be asking for something else, honestly I don’t know. What is your question?