1// A document ready block with JQery.
2$( document ).ready(function() {
3 // we ready for fire action with JQery.
4});
5
6
7// A document ready block with javascript.
8document.addEventListener("DOMContentLoaded", function(event) {
9 // we ready for fire action with javascript.
10});
1document.addEventListener("DOMContentLoaded", function(event) {
2 //we ready baby
3});
1// A $( document ).ready() block.
2$( document ).ready(function() {
3 console.log( "ready!" );
4});
5
1$(document).ready(function(){
2 $("button").click(function(){
3 $("p").slideToggle();
4 });
5});