Comment ajouter un attribut cible modal de données dans jQuery

$('#testButton').attr('data-target','#testModal2');
Glorious Goldfinch