jQuery(document).ready(function ($) {
    // When the notice is dismissed
    $(document).on('click', '.islamic-trust-notice .notice-dismiss', function () {
        $.post(ajaxurl, {
            action: 'islamic_trust_dismiss_notice'
        });
    });
});