Riley40263

Jquery download file on load

This can be loaded into a div on a page of HTML using a single call in jQuery that utilises the load() function. This will just grab the text from the random_number.php file (the contents of which is in the above example) and put the result in the div with the id of test. jQuery provides a function called "getScript", which allows to load external Javascript or js file on the fly.The advantage of using $.getScript is that it loads the content on run time, which is far better than including