I have this for loop which everytime creates a new div that's contenteditable:
for($i=0; $i<$something; $i++){
echo '<div id='.$value[$i].' contenteditable></div>';
}
Now I want to get each div their own value out of it and use that. This shouldn't be that hard but I've never worked with this attribute and there is not a lot of information about this attribute. Also I'd like the value to show up whenever something is changed. So basically an onchanged event. These values will be used in a query. The thing is I cant seem to figure out how to work with this(also I dont have a lot of experience in javascript).
How would I get the value of these divs everytime they change and show them with their div id's?