how add script to html in jquery code example
Example 1: how add script to html in jquery
$.getScript("test.js", function(){
alert("Running test.js");
});
Example 2: html how to add jquery
<!--You can insert Jquery into HTML with the <script> tag in the <head>-->
<!--Insert the next line of code into your <head> tags.-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <!-- jquery (help with javascript) -->
Example 3: add jquery script in html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>