After trying various methods, I have managed to implement a feature where users can input data into an HTML Table and save it using local storage. The goal is to allow users to easily retrieve their saved inputs when they revisit the page.
In addition, I am working on a section that displays the date with the ability to go back one day. For example, if the current date is April 22, I want to display April 21 along with the corresponding day, like Monday or Tuesday.
Here are some snippets of what I have implemented so far:
//For Local Storage
//var input = document.getElementById('daysFree').value;
//localStorage.setItem('daysFree', input);
//document.getElementById('daysFree').value = localStorage.getItem('daysFree'); //For getting the text back -->
// More similar code snippets...
//For Displaying the Date
$(document).ready(function() {
const monthNames = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];
// More JavaScript code...
});