datepicker, jquery validation on the important forms
This commit is contained in:
parent
385c88941f
commit
29a1ef6c61
9 changed files with 747 additions and 13 deletions
9
src/js/giftreg.js
Normal file
9
src/js/giftreg.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
// based on http://alittlecode.com/files/jQuery-Validate-Demo/
|
||||
|
||||
function validate_highlight(label) {
|
||||
$(label).closest('.control-group').removeClass('success').addClass('error');
|
||||
}
|
||||
|
||||
function validate_success(label) {
|
||||
$(label).addClass('valid').closest('.control-group').removeClass('error').addClass('success');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue