Note that there are some explanatory texts on larger screens.

plurals
  1. POUpdating a table row using Jquery
    primarykey
    data
    text
    <p>I need to update a certain row in table, already did "validators" to assure 1 row edit when checkbox is checked after clicking some other button, so far I wrote something like:</p> <pre><code>$("#btnsavechanges").click(function(){ $("#meetingspanel tr td").find(":checked").parent().parent().children.eq(0).append(document.getElementById("modsub").value); $("#meetingspanel tr td").find(":checked").parent().parent().children.eq(2).append(document.getElementById("modwhere").value); $("#meetingspanel tr td").find(":checked").parent().parent().children.eq(3).append(document.getElementById("modwhen").value); $("#meetingspanel tr td").find(":checked").parent().parent().children.eq(4).append(document.getElementById("modtime").value); $("#meetingspanel tr td").find(":checked").parent().parent().children.eq(5).append(document.getElementById("modwho").value); $("#tblmod").fadeOut("slow"); }); </code></pre> <p>notice Meetingspanel is my table, and all those Modsubject and etc are my textboxes. and tblmod is the table of all textboxes and the update button. thanks</p> <pre><code> &lt;table id='tblmod' width='80%' align='center' &gt; &lt;tr bgcolor='white'&gt; &lt;td width='15%'&gt; Enter Subject&lt;input type="text" id="modsubject" width="15%"&gt; &lt;/td&gt; &lt;td width='15%'&gt; Enter Location&lt;input type="text" id="modwhere" width="15%"&gt; &lt;/td&gt; &lt;td width='15%'&gt; Enter When&lt;input type="text" id="modwhen" width="15%"&gt; &lt;/td&gt; &lt;td width='15%'&gt; Enter Time&lt;input type="text" id="modtime" width="15%"&gt; &lt;/td&gt; &lt;td width='15%'&gt; Enter With Who&lt;input type="text" id="modwho" width="15%"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;th align="right" style=border-width:0px&gt;&lt;button type="button" id="btnsavechanges" value="Save New Changes" &gt;Save Changes&lt;/button&gt;&lt;/th&gt;&lt;/tr&gt; &lt;/table&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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