<filename>public/assets/js/interactions.js
$(document).ready(function () {

    $('a[data-toggle=modal], button[data-toggle=modal]').click(function () {

        var data_id = '';

        if (typeof $(this).data('id') !== 'undefined') {

            data_id = $(this).data('id');
        }

        $('#my_element_id').val(data_id);
    });


    $('.verifMdp').mouseup(function () {
        $('.pwd').attr('type', 'password');
    });
    $('.verifMdp').mousedown(function () {
        $('.pwd').removeAttr('type', 'password');
    });
});