jimfog 31 Posted February 25 Report Share Posted February 25 I have a textarea form that the user fills to inform why he/she is closing its business...no more than 200 chars. Suppose that he goes to edit that and clicks the cancel button..in such a case whatever he/she has typed must be replaced by the original text. this original text comes from the database and must be available somehwere in the DOM(in case it is needed such as the case of cancel). I was thinking the data attr but for various reasons I do not think you can store there so much text... What are my alternatives? Quote Link to post Share on other sites
dsonesuk 929 Posted February 25 Report Share Posted February 25 (edited) Any default value in a form input can be retrieved using JavaScript .defaultValue.. Edited February 25 by dsonesuk Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.