jQuery(document).ready(function($) { $('.my-messages-link').on('click', function(e) { e.preventDefault(); $('#ml-messages-modal').toggle(); // Handle the modal toggle functionality here // You can use the `data-toggle` and `data-target` attributes to trigger the desired modal behavior }); });