加入common.js,共用的js方法写在里面
This commit is contained in:
@@ -62,16 +62,6 @@ $(function(){
|
||||
});
|
||||
|
||||
$("#ipCfgFrom").validate({
|
||||
rules: {
|
||||
srcPort: {
|
||||
max: 65535,
|
||||
min: 0
|
||||
},
|
||||
dstPort: {
|
||||
max: 65535,
|
||||
min: 0
|
||||
}
|
||||
},
|
||||
errorPlacement: function(error,element){
|
||||
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user