lazy load comments wordpress on click
Question
<a href="#" id="myLink">Click me!</a>
<div id="result">The text will get loaded here</div>
<script>
$("#myLink").on("click", function(){
$("#result").load("https://ex.com/wp-content/themes/../comments.php");
});
</script>
I asked this code to load the comments after clicking, but it does not work
0
2 years
2020-12-21T17:10:21-05:00
2020-12-21T17:10:21-05:00 0 Answers
6 views
0
Leave an answer