Execute data-mage-init and x-magento-init in dynamic content (ajax response) Trigger .trigger('contentUpdated') on the element where dynamic content is injected. $.ajax({ url: 'https://www.example.com', method: 'POST', data: { id: '1'