user645607 user645607 - 2 months ago 13
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.

http://jsfiddle.net/megaL/

Answer

You should "lint" your code once in a while. Done! That was easy to fix... See enter code here http://jsfiddle.net/EBbXn/4/