Head First jQuery

Home| FonePhiXeR | Rich | Kellie | Kristi | Stormy

Notes


jQuery

        $(document).ready(function(){
$("#clickMe").click(function() {
$("img").fadeIn(1000);
$("#picframe").slideToggle("slow");
});
});
  • $(document).ready();
    says whenever the page is ready, run the function in ().
  • $("#clickMe").click();
    says whenever the div with id of clickMe is clicked, run the function in ().
    # for id. . for class. nothing for element.