I'm looking for some assistance in saving user input to cookies and displaying it to the user. The goal is to have the text entered in the input field change into a div and be displayed to the user every time they revisit the page.
Currently, I only have the input field and I'm struggling to figure out how to implement the desired functionality.
Below is the code I have so far:
<input type="text" class="name" placeholder="What's your name?"/>
For styling, here is the CSS code:
@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:700');
.name{
font-family: 'Roboto Condensed', sans-serif;
font-size: 3.5vw;
border: 0;
outline:0;
background: transparent;
border-bottom: 2px solid white;
width: 30%;
color:#000000;
position:fixed;
top:60%;
left:50%;
margin-left:10px;
}
Any help or guidance on how to achieve the desired functionality would be greatly appreciated. Thank you!