trying to add rows and cells to a table dynamically
<p>I have been successful in adding rows and cells to a table when the content of each cell is a text input. But when I try to add custom text (or a hyperlink) I do not get any result. Here is my code:</p>

<pre><code>if (bb == "link") {

            var newRow = $("&lt;tr&gt;&lt;/tr&gt;").appendTo(thisTable);

            var newLinkCell = $("&lt;td&gt;&lt;/td&gt;").appendTo(newRow);

            var hInput = $("&lt;span&gt;" + l + "&lt;/span&gt;").appendTo(newLinkCell);

        }
</code></pre>

<p><strong>UPDATED FIDDLE:</strong></p>

<p>This is the relevant code. A fiddle of the entire problem is here: <a href="http://jsfiddle.net/N8sW2/1/" rel="nofollow">http://jsfiddle.net/N8sW2/1/</a></p>

<p>My problem deals with the "Link to Page" button. Please help.</p>
