$("#date").change(function (e) { var time = $(this).val().match('满员'); if (time) { $(this).val('') } });
这里用.match查询“满员”,凡是带这个字的都不用传给后台