$('.tushu_jieshu .body .butn .submit').bind('click',function submit(){
//获取输入框的值
var xingming_val = $('.tushu_jieshu .body .xingming #xingming-Input').val() ;
var xuehao_val = $('.tushu_jieshu .body .xuehao #xuehao-Input').val() ;
var shuming_val = $('.tushu_jieshu .body .shuming #shuming-Input').val() ;
var bianhao_val = $('.tushu_jieshu .body .bianhao #bianhao-Input').val() ;
var riqi_val = $('.tushu_jieshu .body .riqi #riqi-Input').val() ;
//假设所有的输入值都合法
if(xingming_val && xingming_val.trim() != '' ){
//构造参数
var param={
xingM : xingming_val ,
xueH :xuehao_val ,
shuM : shuming_val ,
bianH : bianhao_val ,
riQ : riqi_val
}
//调用借书借口
jieshuFun(param);
}else{
$('.tushu_jieshu .body .xingming #xingming-Input').addClass('borderRed');
$('.tushu_jieshu .body .xuehao #xuehao-Input').addClass('borderRed');
$('.tushu_jieshu .body .shuming #shuming-Input').addClass('borderRed');
$('.tushu_jieshu .body .bianhao #bianhao-Input').addClass('borderRed');
$('.tushu_jieshu .body .riqi #riqi-Input').addClass('borderRed');
}
})
添加回答
举报
0/150
提交
取消