Reputation: 491
Is it possible to show on page source ( ctrl+U ) the HTML elements I've added in JavaScript and jQuery codes?
Upvotes: 0
Views: 99
Reputation: 22412
Depending on the browser (i like chrome / firefox / safari for this) you want to look at developer tools. In firefox you can use firebug, in chrome it's Developer Tools and in Safari you have to turn on Developer menu through preferences. In all three cases, you want to look at the DOM inspector.
Upvotes: 0
Reputation: 318698
No, but ever modern browser has a way/extension to see the current sourcecode (actually, the DOM tree), i.e. including everything done by JavaScript.
Upvotes: 0
Reputation: 817030
No.
The page source will always show you the HTML retrieved from the server.
Inspect the generated DOM tree instead, e.g. with Firebug (Firefox) or the Developer Tools (Chrome, Safari).
Upvotes: 5