I have the following code (snippet):
var numRows = $table.find(\'tbody tr\').length;
var numPages = Math.ceil(numRows / numPerPage);
var $pager = $(\'
Yes they do NOT show up,
elements created with javascript arent't visible in the 'View source' part of the browser.
You could use FireBug to find it if you needed to see it in action.
Yes, this is correct.
In firefox you can see the latest source by selecting everything on the page (ctrl+a) and then using rightmouse+view selection source. Or even better, you should install firebug.
Yes. The elements are added directly to the DOM, and not visible via normal view source.
Yes. The source is just used to build the initial DOM that represents the document. Dynamically created elements are only inserted in the DOM.
But you can analyse such elements with a DOM viewer like Safari’s WebInspector or the Firefox extionsion Firebug. Firefox can also show source code that represents such dynamically created elements by selecting that element an choosing View Selection Source in the context menu.
In IE, after pressing F12 and then in HTML section you can press the refresh button to see the updated code.