script.js
// Creating a function to set the local data
Creating a function to set the local data
Creating a function to set the local data
function saveData(event) {
  console.log($(this).siblings("textarea").val())
  var input = $(this).siblings("textarea").val()
  var hour = $(this).siblings("textarea").attr("id")
  localStorage.setItem(hour, input);
}
function saveData ( event ) { console . log ( $ ( this ) . siblings ( "textarea" ) . val ( ) ) var input = $ ( this ) . siblings ( "textarea" ) . val ( ) var hour = $ ( this ) . siblings ( "textarea" ) . attr ( "id" ) localStorage . setItem ( hour , input ) ; }
Creating a function to set the local data
Creating a function to set the local data