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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s