title: How to store data on local ipad/iphone via HTML 5 javascript and submit them when device get's online
body: <p>here is the scenario: There is a questioner that includes 3 questions and each question has 4 multiple answers. User will select an answer to each question and these data is stored in a hidden form in labels, i.e. </p>
  
  <pre><code>&lt;label id=q1&gt;A&lt;/label&gt;
  &lt;label id=q2&gt;C&lt;/label&gt;
  &lt;label id=q3&gt;D&lt;/label&gt;
  </code></pre>
  
  <p>Now in case the device is connected to the internet these data can easily be submitted but in case the device has no internet, I need to find a way to store the label data on user's device and then next time there is a connection, the application to have a submit button which will submit all the stored data (every time the questioner is answered).</p>
  
  <p>Thanks</p>