Relative Content

Tag Archive for arrayscopylocal-storage

Move one Element of one array to another one

I need to create a kind of a note pad. So, there are two input fields where the user specifies the subject and the message/text itself. Then, as soon as one clicks the button the note appears inside of a div below the input fields. So, what I did, in order to make it happen, push-function for adding something and splice-function in order to delete stuff. If the user does not want to lose his notes I use JSON.stringify and JSON.parse, so basically everything what you need.