Jquery getScript Syntax
$.getScript ( url,[callback])
- url: Address to which request is sent.
Jquery getScript Example
- $(“button”).click(function(event): line defines click event which occurs when button is clicked.
JQuery getScript Demo
When you run the above example, you would get the following output :