When working with a form, I start off with an input element that has the "unfilled" class. As the user fills out the form, I use dynamic code to remove this class.
After the form is submitted, there is a redirect to another page.
If I click the "back" button and return to the original form, the element no longer has the "unfilled" class.
This issue does not occur in IE8. I attempted to resolve it by adding a jQuery call, but it doesn't run when returning to the page using the back button:
$('#my_input').hasClass('unfilled')
Thank you!
Update: I mistakenly posted the wrong line of code above. It should actually be:
$(document).ready(function() {
$('#my_input').addClass('unfilled')