Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>ya the problem is IE compatibility mode. This works fine in IE9 <a href="http://jsfiddle.net/NP9pG/3/" rel="noreferrer">http://jsfiddle.net/NP9pG/3/</a> and firefox but when you switch to IE compatibility mode it doesn't work.</p> <pre><code>&lt;div id="buttondiv"&gt; &lt;/div&gt; &lt;div id="send_count"&gt;&lt;/div&gt; &lt;input type="button" id="buttonadd" value="add" /&gt; </code></pre> <p>but this <a href="http://jsfiddle.net/NP9pG/4/" rel="noreferrer">http://jsfiddle.net/NP9pG/4/</a> will work fine tho in IE compatibility mode</p> <pre><code>&lt;table id="buttondiv"&gt; &lt;/table&gt; &lt;div id="send_count"&gt;&lt;/div&gt; &lt;input type="button" id="buttonadd" value="add" /&gt; </code></pre> <p>ya the problem is your html mark-up as suggested make the following change</p> <pre><code>&lt;div id="buttondiv"&gt; &lt;table id="tableData"&gt;&lt;/table&gt; &lt;/div&gt; </code></pre> <p>rather append items to <code>table</code> instead of <code>div</code> element </p> <p>therefore js code:</p> <pre><code>$('#tableData').append('&lt;tr&gt;&lt;td&gt;&lt;select class="combo" name="combo'+$counter+'" style="width: 60px;" size="1"&gt;&lt;option&gt;UND&lt;/option&gt;&lt;option&gt;OHNE&lt;/option&gt;&lt;option&gt;ODER&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="textbox'+$counter+'" class="textbox" value="" /&gt;&lt;a id="removetxt" class="removetxt" style="text-decoration: none;line-height: 3;" href="#"&gt;&amp;nbsp;[X]&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;'); </code></pre> <p>hope that helps</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload