フォーム内のボタンをクリックすると、Ajaxを使用してサーバーに電話をかけようとします。しかし、event.PreventDefaultを使用したり、falseを返したりしても、Ajaxは使用されません。
何が問題なのか。これが私のHTMLとjQueryコードです
<form action="/Patient/Search" id="patient-search-form" method="post">   
<input type="text" id="PatientName" />
<button class="btn blue-button" id="search-patients" type="submit">
 <i class="icon-save icon-white"></i><span>Search</span>
</button>
</form>
<script type="text/javascript">
    $(document).ready(function () {
        $('#search-patients').submit(function (event) {
            event.preventDefault();             
            SearchPatients();
            return false;
        });
    });
</script>