/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready( function(){ $("#system-debug") .wrapInner("<div id=\"debugWrapper\"></div>") .prepend("<a href=\"javascript:;\" id=\"toggleDebug\">Toggle debug</a>"); $("#debugWrapper").hide(); $("#toggleDebug").click(function(){ $("#debugWrapper").toggle(); }); });