Document Ready in jquery
Example 1 -
<script>
$( document ).ready(function() {
console.log( "ready!" );
});
</script>
Example 2 -
<script>
// Shorthand for $( document ).ready()
$(function() {
console.log( "ready!" );
});
</script>
0 Comments