 <p>View source shows you the source of the original html file, it does not update when javascript updates the DOM. Most browsers have some form of tool that allows you to inspect the current state of the DOM, such as the inspector in webkit browsers or firebug in firefox.</p>