if (undefined == $('input:radio:checked').val()) {
$rootScope.Alert("系统提示", "单选题不能为空");
return;
}
if (''==$('textarea').val()) {
$rootScope.Alert("系统提示", "填空题不能为空");
return;
}
if(undefined==$('input:checkbox:checked').val()){
$rootScope.Alert("系统提示", "多选题不能为空");
return;
}
判断当输入框为空时alert
js获取input里的值,并判断不为空
最新推荐文章于 2021-01-27 02:56:16 发布