okay im trying to make something where you have text and when you click on it, it displays a prompt box then whatever you enter gets put into a cookie, but also at the same time the text gets replaced with the input. i know it sounds kinda confusing so i made a jsfiddle.
You should "lint" your code once in a while. Done! That was easy to fix... See
enter code here http://jsfiddle.net/EBbXn/4/