View Full Version : jquery append in chrome issue

03-02-2012, 06:55 AM
I did something like this:

$('#test').append("<option id='ddm'>added dropdown</option>");
it shows its html in the browser but I can't see it when I view source, is this normal?


03-02-2012, 07:25 AM
"View Source" always is a view of the source as delivered by the server originally. Dynamic changes of the page don't show in "View Source" mode. You'll have to adhere to Developer Tools (like Firebug or built-in tools) to actually view the current dynamically altered source.