How to save draft contect when you add

Standard

http://sisyphus-js.herokuapp.com/

 

https://syeilendrapramuditya.wordpress.com/2015/07/13/html-form-autosave-with-sisyphus-js-how-to-use-it/

 

<!DOCTYPE html>
<html>
<head>
"text/javascript" src="sisyphus.min.js">
$( function() {
$( "#form2" ).sisyphus(); //Autosave form2 only,
// or you can persist all forms data at one command
// $( "form" ).sisyphus();
} );
</head>
<body>
Form 1
<form action="" id="form1" name="form1" method="post">
Name:<br />
<input type="text" name="name" value="" /><br />
E-mail:<br />
<input type="text" name="mail" value="" /><br />
Comment:<br />
<input type="text" name="comment" value="" size="50" />
<br /><br />
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
<br>
Form 2
<form action="" id="form2" name="form2" method="post">
Name:<br />
<input type="text" name="name" value="" /><br />
E-mail:<br />
<input type="text" name="mail" value="" /><br />
Comment:<br />
<input type="text" name="comment" value="" size="50" />
<br /><br />
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
Advertisements