jquery - Add validation image for success/fail -
i using jquery tools validator , add simple green checkmark img (http://p.yusukekamiyamane.com/) once of fields pass validation and, onsubmit add simple cross img , red border ones fail validation.
right now, have red border along standard error message. can't figure out how remove error message , replace green check or red cross img:
i think need use onsuccess can't seem figure out how put in/toggle images. great.
you can use success
option , set class on label decorate image.
.validate({ success: function(label) { label.addclass('valid'); } });
Comments
Post a Comment