Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to update table cell value using jQuery
    primarykey
    data
    text
    <p>I am having problem updating table cell value using jQuery 1.4.2. it all works in Firefox and Safari but IE8 and IE9 is simply not doing anything. There is no warning, error or anything that would give me some hint where to look for it.</p> <p>Table looks following:</p> <pre><code>&lt;table id="test"&gt; &lt;tr id="1"&gt; &lt;td id="name"&gt;sample name&lt;/td&gt; &lt;td id="schedule"&gt;sample value&lt;/td&gt; &lt;td id="day"&gt;sample value&lt;/td&gt; &lt;/tr&gt; &lt;tr id="2"&gt; &lt;td id="name"&gt;sample name&lt;/td&gt; &lt;td id="schedule"&gt;sample value&lt;/td&gt; &lt;td id="day"&gt;sample value&lt;/td&gt; &lt;/tr&gt; &lt;tr id="3"&gt; &lt;td id="name"&gt;sample name&lt;/td&gt; &lt;td id="schedule"&gt;sample value&lt;/td&gt; &lt;td id="day"&gt;sample value&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>I am executing ajax call and getting json data: </p> <pre><code>{"Test": [ {"id":"1", "name":"John", "day":"Monday"}, {"id":"2", "name":"Marry", "day":"Thursday"} ]} </code></pre> <p>once data is received there is a loop which iterates through the json dataset and updates appropriate column with received data as following:</p> <pre><code>$.each(json.Tests, function(){ /* update test with details */ var test = this.hash; /*set values for each test */ $("table#test tr[id=" + test + "]").find("#name").html(this.name); $("table#test tr[id=" + test + "]").find("#schedule").html(this.status); $("table#test tr[id=" + test + "]").find("#day").html(this.changed); }); </code></pre> <p>As I mentioned, this has been tested in Safari and Firefox all works fine but IE8 and IE9 seems not to do anything. </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. 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