Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$(function(){
$( document ).tooltip({
items: "[data-errors]",
content: function() {
var element = $( this );
if ( element.is( "[data-errors]" ) ) {
return element.attr( "data-errors" );
}
},
show: {
effect: "fadeIn",
delay: 300
},
tooltipClass : "coral-state-error",
hide: { effect: "fadeOut", delay: 0 },
position: {
my: "left top",
at: "left bottom+5"/*,
using: function( position, feedback ) {
$( this ).css( position );
$( "<div>" )
.addClass( "coral-state-error" )
.addClass( feedback.vertical )
.addClass( feedback.horizontal )
.appendTo( this );
}*/
}
});
});
/*$.validate.validTypeOptions = {
"maxlength": {
restrictInput: true
},
"number": {
restrictInput: true
}
};*/
/*$.fn['datepicker'].defaults = {
minDate: "2015/8/7", //最小的可选日期,为null则无限制
maxDate: "2015-09-01"// 最大的可选日期,为null则无限制
};*/