title: I want to bind the localstorage-retrieved objects contents back to the form?
body: <p>I want to bind the local storage objects content to the form fields ?</p>
  
  <pre><code> function saveToLocalStorage () {
  
      var formData= JSON.stringify($('form').serialize());
      var purchaseInoice = localStorage.setItem('PI',formData);
      var retrievedObject = localStorage.getItem('PI');
      console.log('retrievedObject: ', JSON.parse(retrievedObject));
      // alert("Saved as a Draft..!");
       }
  </code></pre>