title: How to set a input value of a form with jQuery Cookie
body: <p>Hi I am learning jQuery and right now I am trying to use jQuery Cookie to set a form input value. </p>
  
  <p>I have been able to set the cookie from a form using this:</p>
  
  <pre><code>&lt;script&gt;
    $(document).ready(function () {
      $("#saveForm").click(function() {
        $.cookie('myCookie', $("#element_1").val(), { expires: 365 });
      });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>I was able to verify the cookie using an alert like this:</p>
  
  <pre><code>&lt;script&gt;
    alert( $.cookie("myCookie") );
  &lt;/script&gt;
  </code></pre>
  
  <p>But after searching numerous posts on here, I was not able to find the same question and I have looked at numerous tutorials and can't find the code to set the value of a input field in a form. Thanks in Advance!!</p>