JSFiddle - React, Tailwind, and code Playground
by JAAulde
HTML
<div id="ajaxPageTarget">
</div>
JavaScript
//Provided in origianl page load
var testing = function()
{
alert( 'hi! just testing.' );
};
$( function()
{
$( '#ajaxPageTarget' )
.load(
'/echo/html/',
{
//HTML which will be loaded by ajax after 3 seconds
html: '<script type="text/javascript">testing();<\/script>',
delay: 3
}
);
} );