assets/js/script.js
// Saves the text area values in the local storage, using their parent IDs
Saves the text area values in the local storage, using their parent IDs
Saves the text area values in the local storage using their parent IDs
function handleSave(event) {
    var target = $(event.target);
    var textAreaVal = target.siblings('textarea').val();
    var parentID = target.parent().attr('id');
    localStorage.setItem(parentID, textAreaVal);
}
function handleSave ( event ) { var target = $ ( event . target ) ; var textAreaVal = target . siblings ( 'textarea' ) . val ( ) ; var parentID = target . parent ( ) . attr ( 'id' ) ; localStorage . setItem ( parentID , textAreaVal ) ; }
Saves the text area values in the local storage, using their parent IDs
Saves the text area values in the local storage using their parent IDs