0

i want to write a short code i have multi contenteditable divs and i use a function to put the value of the div to a textarea please check with me

var myContentArr = ["myContent1", "myContent2", "myContent3", "myContent4", "myContent5", "myContent6"];
var hiddenArr = ["hidden1", "hidden2", "hidden3", "hidden4", "hidden5", "hidden6"];

function myFunction(){
    for (var i = 0; i < hiddenArr.length; i++) {
        document.getElementById(hiddenArr[i]).value =
        for (var i = 0; i < myContentArr.length; i++) {
            document.getElementById(myContentArr[i]).innerHTML
        }
    }
    return true;
}
Joulss
  • 1,040
  • 1
  • 14
  • 26
  • I'm not quite sure of what you're trying to do. Is the goal to copy values from hidden array to the matching content array elements ? – Joulss Oct 29 '21 at 08:46
  • trying to use this >>>> https://stackoverflow.com/questions/7355583/can-div-with-contenteditable-true-be-passed-through-form – user318899 Oct 29 '21 at 10:22

0 Answers0