In my endeavor to develop a JavaScript function that monitors changes made in a web form when the page is submitted, I have encountered an issue. While for regular .NET textbox or textarea fields, I can compare the value with the default value using the following code:
var ele = document.forms[0].elements;
for ( i=0; i < ele.length; i++ )
{
if ( ele[i].value != ele[i].defaultValue ) return true;
}
The challenge arises when dealing with a DNN text editor on my webpage. The ele[i].value does not update when a user modifies the text in the text editor, resulting in it always returning false as it fails to track the changes.
Are there any attributes of the DNN text editor control that store the altered data?