I ma really new to javascript but I am using jquery and the jquery cookie library. I was wondering how I can put the contents of an input text box into a cookie.
This is the code I have tried but it hasn't worked:
JS
$.cookie("location_input", "#lat");
HTML
<input id="loc" placeholder="Location" type="text"></input>
Is there something else stopping this from working or have I not done this bit of code correctly?