put javascript on html code example
Example 1: how to put javascript in HTML
<script>
//put your java script here
</script>
Example 2: how to add javascript in html
$(document).ready(function() {
// add your code here
})
<script>
//put your java script here
</script>
$(document).ready(function() {
// add your code here
})