In a login form, when I click submit button, if the submit is failed, the page will refresh and the content which I have inputed have gone, how to make the control remember the value I have tested and represent in the control.
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this way
With this plugin you can make it work.
Here are some of available API
Set the value of a form field or the HTML of an element to a cookie named
after the field’s/element’s name or id attribute
The value of the field, or HTML of the element, with id “username” is set to a cookie
named after the name or id attribute of that field/element. If a radio or checkbox and
it’s checked, the value will be set.
Fill a field’s value, or an element’s innerHTML with the value of a cookie
Set the value of the input, or HTML of the element, with id, ‘username’, to the
value of a cookie by the same name. If a radio or checkbox and it is checked, the
cookie will be set. If not checked, the cookie will be deleted.
Bind an input to the cookies library
Fills the field or element with id, ‘username’, with the cookie named the same and
sets the field’s/element’s change event to fire cookify() to update the cookie when
the input value changes