I'm receiving a console error for this line:
$("#note" + noteCount).val() = note;
Here is the full function:
function addNotes() {
noteCount++;
var note = $("#noteInput").val();
console.log("Note: " + note);
console.log("Note Count: " + noteCount);
var display = document.createElement("div");
document.getElementById("displayContainer").appendChild(display);
display.className = "noteDisplay";
display.id = "note" + noteCount;
$("#note" + noteCount).val() = note;
}
As you can see i'm creating a div with id 'note' + note count but i'm not sure how to select it to change its value.