title: Is there any way to check whether form is dirty or not in JavaScript?
body: <p>I have one form validator example in java script. In this case, Is there any way to check whether the form is dirty or not?</p>
  
  <p>My platform is JavaScript</p>
  
  <p>Please find corresponding sample below, and suggest any solution.</p>
  
  <p><a href="https://dojo.telerik.com/APiVoMEl" rel="nofollow noreferrer">sample link</a></p>
  
  <p>code snipet:
  i have used like:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>if (name.value != name.defaultValue) { 
      alert("#name has changed"); 
      }</code></pre>
  </div>
  </div>
  </p>