Answers for "get modal data jquery"

1

jquery on modal show

$(window).on('shown.bs.modal', function() { 
    $('#code').modal('show');
    alert('shown');
});
Posted by: Guest on October-01-2020
1

how to add data modal target attribute in jquery

$('#testButton').attr('data-target','#testModal2');
Posted by: Guest on November-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language