$(document).ready(function () { function ajax_error_handler() { $("#DEFAULT").show(); $("#error_modal").modal('show'); } }); function ajax_error_handler() { $("#DEFAULT").show(); $("#error_modal").modal('show'); }