document.ready()
function on the same page?document.ready()
function on the same page. $(document).ready(function() {
$("h1").css("background-color", "red");
});
$(document).ready(function() {
$("p").css("background-color", "blue");
});