Mission: To find the last table and color it red. The id of it is
(dynamic).
$("#mytd table:last td").css("background-color","red"); var lastTableId = $("#mytd table:last").attr("id"); $("span").text(lastTableId)
first table
second table
third table
fourth table