May 11, 2006
Often times when you are generating html code and injecting it into a page, you can't always see what code has been generated by your backend machinations. The following snippet of code will enable you to have a button on the page which, when clicked, will reveal the code of the element you're debugging. Requires the prototype library.
Update: This may also be useful - AJAX Spy
ajax rails javascript html
TrackBack URL for this entry: https://imajes.info/mt/mt-tb.cgi/324