user645607 user645607 - 1 year ago 66
jQuery Question

make cookie from the input of a prompt box

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.

Answer Source

You should "lint" your code once in a while. Done! That was easy to fix... See enter code here