skip to Main Content

i tried loading html page to div using jQuery ajax

trying to load html page to div using jQuery ajax im pretty sure it's right but i don't know why exactly it's not working. that's my code: <div class="second"> </div> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script type="text/javascript"> $(function(){ $("button").on("click",function(){ $('#second').load($(this).data("page")); }); });…

VIEW QUESTION
Back To Top
Search