Posted By

onefastsnail on 05/24/12


Tagged


Versions (?)

focus el


 / Published in: Other
 

  1. $("form").on("blur", ".check", function(){
  2. $this = $(this);
  3. if($this.val()!=""){
  4. $this.removeClass("error");
  5. }
  6. else {
  7. $this.addClass("error");
  8. }
  9. });

Report this snippet  

You need to login to post a comment.