Skip to content

Commit

Permalink
Refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jun 19, 2010
1 parent 89f4e76 commit 5423d88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/javascripts/form.js
Expand Up @@ -35,6 +35,9 @@ $(document).ready(function() {
var $parent = $(element).parent();
var $validElements = $parent.find('span.valid');
$validElements.remove();

$parent.addClass(errorClass).removeClass(validClass);
$(element).show();
});
},
unhighlight: function(element, errorClass, validClass) {
Expand Down

0 comments on commit 5423d88

Please sign in to comment.