How to get the old value of a textarea?

Var oldValue = document. GetElementById("textareaid"). Value; document.

GetElementById("textareaid"). Onchange = function(){ var newValue = this. Value; //Compare oldValue and newValue oldValue = newValue; }.

Make oldvalue an array and set keys with some sort of stamping, say arrayOldValueversion_1 = initialValue and then keep on increasing the version_1 to version_n and you may even have support for version-ing – Kumar Mar 7 at 3:39 @Peter: Nice, but I need to use that // Compare oldValue and newValue stuff outside of the function. Any way to accomplish that? – Robert Smith Mar 7 at 3:45 @Kumar: Well, in my case, trying to keep all values would be too much.

Thanks for the suggestion, though. – Robert Smith Mar 7 at 3:46 @Robert Smith Put the code you need to use in a function and call that function. – Peter Olson Mar 7 at 4:08 @Peter: Oh, I think that will work.Thanks.

– Robert Smith Mar 7 at 4:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions