Jquery Starting
$( document ).ready() block. $( document ).ready(function() { console.log( “ready!” ); }); <div id=”demo”></div> <script> $(‘p’).click(function(){ document.getElementById(“demo”).innerHTML = “Hi this is new jquery testing”; });
Website Designing Blog
$( document ).ready() block. $( document ).ready(function() { console.log( “ready!” ); }); <div id=”demo”></div> <script> $(‘p’).click(function(){ document.getElementById(“demo”).innerHTML = “Hi this is new jquery testing”; });
The lifecycle of an HTML page has three important events: DOMContentLoaded – the browser fully loaded HTML, and the DOM tree is built, but external resources
Writing array code: <script> var x =[23, 34, 43, 44, 43]; for (var i = 0; i < 4; i++) document.write(x[i]); </script> var