$(function(){ $("#element1").before("(element1) ").css("color","navy"); });
$(function(){ var x = 0; $("#sample2Btn").click(function(){ x++; $(this).before(x + ","); }); });
$("#s3Btn").click(function(){ var s3Pro = prompt(); $(this).before("p>" + s3Pro + "/p>"); });