A jQuery plugin that allows you to define cookie-stored input fields so that a user's previous information is stored upon input.
Given the following HTML input field:
<input id="example1" type="text" name="example1field"></input>
and the following javascript initialization code:
$("#example1").inputStore();
You will get the following working example form input:
By default this input field will store the values as cookies when they are entered into the browser for 365 days. The cookie name default's to the input field name. In this case it defaults to example1field.
Given the following HTML input field:
<input id="example2" type="text" name="example2field"></input>
and the following javascript initialization code:
$("#example2").inputStore({
name: "CustomOptions",
expire: 120,
debug: true
});
You will get the following working example form input:
This code snippet overrides the current defaults.
1. Text Input Blocks
<input id="inputBlock" type="text" name="inputBlock"></input>
$("#inputBlock").inputStore();
2. Number Input Blocks
<input id="numberBlock" type="number" name="numberBlock"></input>
$("#numberBlock").inputStore();
3. Check Box Blocks
<input id="checkboxBlock" type="checkbox" name="checkboxBlock"></input>
$("#checkboxBlock").inputStore();
4. Select Blocks
<select id="selectBlock" name="selectBlock">
<option value="OptionA">Option A</option>
<option value="OptionB">Option B</option>
<option value="OptionC">Option C</option>
</select>
$("#selectBlock").inputStore();
5. Text Area Blocks
<textarea id="textareaBlock" name="textareaBlock"></textarea>
$("#textareaBlock").inputStore();