Created
August 25, 2023 12:59
-
-
Save moxet/42f1ec61e1707c1bae73879465bb0079 to your computer and use it in GitHub Desktop.
Jquery Code to Read Notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function($) { | |
$(document).on('click',".fa-check-circle",function () { | |
var cct_id = $(this).siblings('.jet-listing-dynamic-field__content').text(); | |
jQuery.ajax({ | |
type: "post", | |
dataType: "json", | |
url: "/wp-admin/admin-ajax.php", | |
data: { | |
action:'get_data', | |
new_meta_value: cct_id | |
}, | |
success: function(response){ | |
location.reload(); | |
} | |
}); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment