title: "Uncaught TypeError: Cannot read property 'parse' of undefined" on $.validator.unobtrusive.parse($('form'))
body: <p>I am dynamically appending a form with a checkbox and a few other input fields. I have added the validate method for all those fields already, which obviously would not work.</p>
  
  <p>I tried to resolve this issue using a below code:</p>
  
  <pre><code>$.ajax({
          url: url,
          method: 'POST',
          data: formData,
          success: function(response) {
              if (response) {
                  $(".step-five").find(".payment-section").html(response); //response is from backend and is html file
                  $(".step-five").show();
  
                  var $frm = $(".paymentForm");
  
                  // added this to make validator work for the form appended on success
                  $frm.data('validator', null);
                  $.validator.unobtrusive.parse($frm);
              }
          }
      })
  </code></pre>
  
  <p>But now, I am getting an error on <strong>$.validator.unobtrusive.parse($frm);</strong></p>
  
  <p>Error is </p>
  
  <blockquote>
    <p><em>Uncaught TypeError: Cannot read property 'parse' of undefined</em></p>
  </blockquote>
  
  <p>Can anyone please help with this?</p>
  
  <p>TIA</p>