我有一个id = DiscountCode的文本框。有人必须输入正确的折扣代码才能提交表单。如果不匹配,则会有提醒,表单不会提交。现在,使用此代码,它只接受准确的输入并且区分大小写。有人可以帮助我在不区分大小写的情况下做出某人的答案吗?谢谢。
$('.send-emails').click(function (e) {
// build data and other stuff
$.post('/leads/sendemails', data, function (data, status, xhr) {
alert('Emails have successfully been queued for sending.');
window.onbeforeunload = null;
window.location.href = '/Leads/Lead/' + @Model.LeadID;
}, 'json');
});