Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery toggle element of clicked row
    primarykey
    data
    text
    <p>This is supposed to be a client list, where you click the rows to select them and then submit them to database for cron job to pick them up and send email to them.</p> <p>I'm trying highlight rows instead of using checkboxes, thats why I put two hidden elements one for the client id, other - bool for checking if row has been clicked or not.</p> <p>What I can't figure out is how to toggle the specific row's element value(checked).</p> <pre><code>&lt;table&gt; &lt;tbody&gt; &lt;tr class="contactrow"&gt; &lt;input type="hidden" name="id" value="995"/&gt; &lt;input type="hidden" name="checked" value="FALSE"/&gt; &lt;td&gt;Andrew Ostrich&lt;/td&gt; &lt;td&gt;AO Company&lt;/td&gt; &lt;td&gt;7537535&lt;/td&gt; &lt;td&gt;ao@aocompany.com&lt;/td&gt; &lt;/tr&gt; &lt;tr class="contactrow"&gt; &lt;input type="hidden" name="id" value="296"/&gt; &lt;input type="hidden" name="checked" value="FALSE"/&gt; &lt;td&gt;Brendon Evans&lt;/td&gt; &lt;td&gt;Institute of Modern Arts&lt;/td&gt; &lt;td&gt;648648468&lt;/td&gt; &lt;td&gt;bevans@ioma.co.uk&lt;/td&gt; &lt;/tr&gt; &lt;tr class="contactrow"&gt; &lt;input type="hidden" name="id" value="421"/&gt; &lt;input type="hidden" name="checked" value="FALSE"/&gt; &lt;td&gt;Rudy Thompson&lt;/td&gt; &lt;td&gt;Marine CORP&lt;/td&gt; &lt;td&gt;95939288&lt;/td&gt; &lt;td&gt;Rudee@mcorp.es&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>​ Also, <a href="http://jsfiddle.net/FHjAc/" rel="nofollow">http://jsfiddle.net/FHjAc/</a></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.
 

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