When we embed javascript inside ajax  innerHTML.The script will not execute automatically. Therefore we have to use a trick for executing the <script> tags inside innerHTML.

The code example I used was as below.

The output implemented from ajax function is



HTML Code




If loadmore is the javascript ajax funtion,