Note that there are some explanatory texts on larger screens.

plurals
  1. POIterate through table fields, and send values by email
    primarykey
    data
    text
    <p>I have table like this:</p> <pre><code>&lt;tr class="product"&gt; &lt;td&gt;&lt;input class ="parts" id="tf1" type="text" style="width:327px"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf2" type="text" style="width:51px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf3" type="text" style="width:144px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf4" type="text" style="width:64px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf5" type="text" style="width:81px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf6" type="text" style="width:12px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf7" type="text" style="width:21px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf8" type="text" style="width:22px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf9" type="text" style="width:22px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf10" type="text" style="width:60px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf11" type="text" style="width:35px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf12" type="text" style="width:41px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf13" type="text" style="width:50px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input class ="parts" id="tf14" type="text" style="width:44px";"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="button" class="addRow" value="Add"/&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="button" class="delRow" value="Delete"/&gt;&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>I want to iterate trough every field of table row, and mark result and send it with php mail to email address. I think it is fairly simple, but it somehow dont work. I tried with this function:</p> <pre><code>function fill(){ var value = $find.("tr.product.input.parts").html(); return value; } </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.
    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