Hi, how do I build on the code suggested here: https://theme.co/apex/forum/t/content-area-modal-open-on-click/60535/6 to trigger a second modal on the same page, say with id=my-content-area-2?
Thanks,
jQuery( function($){
$('.open-modal-button').on( 'click', function(e){
e.preventDefault();
$('a.e146-3.x-anchor.x-anchor-toggle').trigger('click touchend touchstart');
});
});
jQuery( function($){
$('.open-modal-button').on( 'click', function(e){
e.preventDefault();
$('#my-content-area-1-anchor-toggle')[0].click();
});
});