leso9903 Posted July 21, 2013 Share Posted July 21, 2013 Hello, first off I wanted to thank you guys for helping me this far. I've posted a couple of times here and I got my questions answered and my problems fixed. I hope I can return the favour when I'm abit more knowledgable. Anyway, I'm working on a registration form and I've implemented some animation effects such as the input field turning red on click when there is no data inserted. I'd like to know how to keep the red input field even after the page has loaded. I've noticed that the inserted data inside the input fields are still there after I've updated the page - I'd like the same for my input field color. I've heard that it has something to do with a global variable and some false/true statements. All of this is done i jquery and I'd like to keep doing it in jquery. Also, please comment on the theory in question if there is a solution to this problem. I've a much easier time to remember stuff when there is some info about it.. thanks in advance! /Len Link to comment Share on other sites More sharing options...
niche Posted July 21, 2013 Share Posted July 21, 2013 Please post the relevant part of what you have so far. Link to comment Share on other sites More sharing options...
davej Posted July 21, 2013 Share Posted July 21, 2013 Normally the content of a form would be preserved for reloading by the server code, if that is desired. If additional information needs to be preserved you might need to add hidden form fields for that purpose. In this case it isn't clear what you want to do. What is the action field on the form? Link to comment Share on other sites More sharing options...
jeffman Posted July 21, 2013 Share Posted July 21, 2013 I've noticed that the inserted data inside the input fields are still there after I've updated the page How are you updating the page? Are you sure this is a javascript question and not a server-side question? Are you using AJAX or a traditional form submission? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now