<input type="submit" value="提交" id='btn' class="btn btn-success" οnclick="return check(this.form)">
function check(form) {
var north = $('#north').val();
var displacement = $('#displacement').val();
var ids = $('#ids').val();
if (north == '') {
alert('车型名称不能为空');
return false;
}
if(displacement ==''){
alert('排量数值不能为空');
return false;
}
return true;
}