sample1p
$(function(){ $("#sample1p").click(function(){ $(this).parent().css("background","red"); }); });
$(function(){ $("#element1").click(function(){ $(this).parent().css("color","red"); }); $("#element2").click(function(){ $(this).parent().css("color","pink"); }); });