Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, June 6, 2013

Codeschool Sample Solution Refactoring



$(document).ready(function(){
  $("button").on("click", function(){
    var tour = $(this).closest(".tour");
    var discount = tour.data("discount");
    var message = $("<span>Call 1-555-jquery-air for a $" + discount + "</span>");
    tour.append(message);
    $(this).remove();
  });
});

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts