Programming Tutorials

Comment on Tutorial - Show how many characters remaining in a html text box using javascript By Emiley J.



Comment Added by : MisterCrow

Comment Added at : 2013-04-30 11:56:49

Comment on Tutorial : Show how many characters remaining in a html text box using javascript By Emiley J.
Works great, thanks! However, is there any way to prevent the counter from resetting whenever data from the form is posted to PHP server? If the post fails because a mandatory field isn't filled in correctly, the text is returned to the box (using PHP), but the counter is reset (even though there is text in the box)!

View Tutorial