Skip to content Skip to sidebar Skip to footer

How To Send Both HTML And Javascript Through Ajax

I want to retrieve HTML and Javascript from the same page using AJAX calls. However, I'm not sure what the best, cleanest, and safest way to do this is. I want my Javascript to edi

Solution 1:

See dataType here

"html": Returns HTML as plain text; included script tags are evaluated when inserted in the DOM.


Post a Comment for "How To Send Both HTML And Javascript Through Ajax"