Category Archives: make sure the page is ready

getting started

Before we can interact with HTML elements on a page, those elements need to have been loaded: we can only change them once they’re already there.

<script type=”text/javascript”>

$(document).ready(function() {
alert(‘welcome to the star to jquery…’);
});

or

$(function() {
 code goes here
});
<script>