私はこのラインのためのコンソールエラーを受けています:ここでjQueryの無効左側エラー
$("#note" + noteCount).val() = note;
は、フル機能である:
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;
}
あなたは、私が作成しています見ることができるようにid 'note' + note countでdivを指定していますが、値を変更するにはどのように選択するのか分かりません。
の可能性のある重複した[にReferenceError:割り当てに無効な左辺](http://stackoverflow.com/questions/18597667/referenceerror-invalid-left-hand -side-in-assignment) –