views:

33

answers:

4

Is there a way to view the jQuery (or Javascript) generated HTML - for example, see the jQuery-modified source of a page that uses a number of prepend()'s html()'s etc.?

+3  A: 

Use Firebug to look at the current DOM, although it is an interpretation of the HTML.

Daniel A. White
http://getfirebug.com/ That's the link. It's an add on for firefox.
Razor Storm
+2  A: 

You can inspect the page with firefox addon FireBug though:

alt text

Sarfraz
What about `$('html').html()`?
Daniel A. White
@Daniel A. White: Good point, updated, thanks
Sarfraz
bellisimo - thanks!
ina
@ina: Welcome :)
Sarfraz
A: 

Download the Web Developer plug-in for FireFox. Then Right click on the page, the select Web Developer -> View Source -> View generated source

TheGeekYouNeed
+2  A: 

In addition to Firebug as the other answers suggest, you can also use the built-in Chrome developer tools: alt text

To access the tools you can do it the same way as Firebug, just right click and select Inspect Element.

Nick Craver