title: Jquery validation - errorPlacement only works first time
body: <p>This is my code</p>
  
  <p><a href="http://jqueryvalidation.org/documentation/" rel="nofollow noreferrer">http://jqueryvalidation.org/documentation/</a></p>
  
  <pre><code>var validator = $("#loginForm").validate({
      errorPlacement: function (error, element) {
          error.html("");
          var img = $('&lt;img id="dynamic"&gt;'); //Equivalent: $(document.createElement('img'))
          img.attr('src', "../images/inputerror.png");
          img.appendTo(error);
          error.insertAfter(element);
      }
  });
  </code></pre>
  
  <p>This sets an image instead of the 'This field is required'.</p>
  
  <p>It all works fine.. but only the first time.
  When I validate it again, it shows 'this field is required again'.</p>
  
  <hr>
  
  <p>first time</p>
  
  <p><img src="https://i.stack.imgur.com/M3Eky.png" alt="enter image description here"></p>
  
  <hr>
  
  <p>second time</p>
  
  <p><img src="https://i.stack.imgur.com/twhEL.png" alt="enter image description here"></p>