Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery get() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $.getScript('getscript.js',function(){ nameAlert(); }); }); }); </script> </head> <body> <div id="msg">This text replace with new contains</div> <br /> <button>Click here to call getScript() method</button> </body> </html>
  Preview Arrow