Simple debug function
April 11, 2009
Twitter's a new exciting social media. And guess what, I'm quite active on it. Follow me on Twitter to get the latest links and updates.
Simple debug function which allow to print out information at the end of the HTML
Syntax: Debug(message, inline);
var Debug = function(mess, inline){
if($("#Debug").length==0){
$("body").append("<div id='Debug'></div>");
}
if(inline){
$("#Debug").html($("#Debug").html()+mess);
}else{
$("#Debug").html($("#Debug").html()+"<br/>"+mess);
}
};

Leave a Reply