Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'd suggest, though untested:</p> <pre><code>$('tr:not(".headerRow")').first().find('input').change(); </code></pre> <p><a href="http://jsfiddle.net/davidThomas/pSZxG/2/" rel="nofollow">JS Fiddle demo</a>.</p> <p>Further, though, I'd suggest reworking your HTML to take advantage of semantics (Which will simplify your jQuery):</p> <pre><code>&lt;table&gt; &lt;thead&gt; &lt;tr class="tblRow headerRow"&gt; &lt;!-- header cells --&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tfoot&gt; &lt;tr class="altTblRow totalRow"&gt; &lt;!-- total cells --&gt; &lt;/tr&gt; &lt;/tfoot&gt; &lt;tbody&gt; &lt;tr class="altTblRow"&gt; &lt;td class="tableCell"&gt; &lt;input type="text" id="input1-1"&gt; &lt;/td&gt; &lt;td class="tableCell"&gt; &lt;input type="text" id="input1-2"&gt; &lt;/td&gt; &lt;td class="tableCell"&gt; &lt;input type="text" id="input1-3"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;!-- other rows --&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>Which would allow you to simply use:</p> <pre><code>$('tbody tr').first().find('input').change(); </code></pre> <p><a href="http://jsfiddle.net/davidThomas/pSZxG/3/" rel="nofollow">JS Fiddle demo</a>.</p> <p>References:</p> <ul> <li><a href="http://api.jquery.com/change/" rel="nofollow"><code>change()</code></a>.</li> <li><a href="http://api.jquery.com/find/" rel="nofollow"><code>find()</code></a>.</li> <li><a href="http://api.jquery.com/first/" rel="nofollow"><code>first()</code></a>.</li> <li><a href="http://api.jquery.com/not-selector/" rel="nofollow"><code>:not()</code> selector</a>.</li> </ul>
    singulars
    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.
 

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