views:

245

answers:

6

I currently use Chrome/Firefox for my web development.

Is there a plugin, or am I just another way, where you can view the HTML source AFTER all jQuery plug-ins have run? I just want to see what and how jQuery modified the HTML?

+18  A: 

Firebug will show the state of the DOM as it is in the current point in time:

alt text

Rex M
@Rex M, What Program have you used to take this printscreen?
Cleiton
@Cleiton I just took the image from http://getfirebug.com
Rex M
+1 hahahaah @Rex M, thanks!
Cleiton
+5  A: 

You'll need to use Firebug for that (in Firefox, obviously). It actually tracks the page's current DOM, instead of displaying the original source.

JorenB
+3  A: 

Right click and select 'Inspect element'. That will show you the HTML after it has been loaded in Chrome.

For Firefox: Install firebug, then you will see the 'inspect element' option.

krishna
+1  A: 

firebug for firefox will pick up changes to the DOM.

Andy Gaskell
+12  A: 

In Firefox:

Use the web developer tool by Chris Pederick. Go to View Source -> View Generated Source. Using this same tool, highlight elements you would like to see the generated source for and then right click to see View Selection Source.

Or, you could use the Firebug tool, to inspect the elements on the page.

Dhana
+1 for Web Developer. I find this easier to read the source in than Firebug.
tvanfosson
+17  A: 

There is a much easier way to do this without installing any plugins:

Ctrl-A to select all content on the page, and right-click "view source"

(only works in firefox of course)

mkoryak
+1 This does work!
mattruma
Huh, I wouldn't have expected that to work. Great answer!
ceejayoz