Last active
November 2, 2017 17:21
-
-
Save RobertCam/a1369f4e787d54abfe1a8583e8142291 to your computer and use it in GitHub Desktop.
Save partially completed form data in local storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/garlic.js/1.3.0/garlic-standalone.min.js"></script> | |
<script> | |
/** | |
* Do not remove this section. It helps our team track useage of external workarounds. | |
* TS:0002-04-081 | |
*/ | |
$("form").attr("data-persist", "garlic"); | |
$("form").attr("data-destroy", "false"); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment