lucacataldo/my-note

Suggestion: Clear button

Closed this issue · 2 comments

This app works well and ready to be used!
However, due to it's saving automatically, it would be much nicer if there is a clear button to delete all notes.

Hey Hansol! You can work on this is you would like. I think it's a great idea.

        //add clear button
        <a id="clearButton" href="#">clear</a>
	//clear function
		function clearNote(){
			let loadedString = "Welcome to my-note! Start typing here, and we'll automatically save it for you.";
			$("#notepad").html(loadedString);
			save(); 
		}