so I am trying to load in content with ajax jQuery and here is my script:
$('#ajaxloadcontent').load(url+' #ajaxloadcontent');
I’ve done some research and learned that when a specific selector is used for a .load() function, #ajaxloadcontent, that s on that page that is being loaded in are overlooked. I have tried everything to try and fix this error and have been browsing the StackOverflow community for hours, with no success. Obviously, I need my script to be able to recognize as it is a vital part to my site. Any help would be greatly appreciated as I can not continue the development of my site until I get this issue fixed. Thanks.
.load()strips out any<script>elements automatically. You’ll have to look for an alternate solution, perhaps something like.getScript.