title: Selecting button in second last td of first tr in table - Using jQuery selector
body: <p>I've been trying to write a selector in jQuery which selects a button with a class in the second last td of the first tr in  a table. This is what I've come up with so far:</p>
  <pre><code>$(':button.jtable-edit-command-button tr:first td:nth-last-of-type(2)').trigger('click');
  </code></pre>
  <p>But it doesn't work.</p>
  <p>I've also tried this:</p>
  <pre><code>$(':button.jtable-edit-command-button:td:nth-last-of-type(2):tr:first').trigger('click');
  </code></pre>
  <p>But I get an error which says:</p>
  <pre><code>Syntax error, unrecognized expression: unsupported pseudo: td
  </code></pre>
  <p>Here's the <a href="https://jsfiddle.net/581Lem2f/1/" rel="nofollow noreferrer">JS Fiddle</a> and <a href="https://www.w3schools.com/jquery/jquery_ref_selectors.asp" rel="nofollow noreferrer">this W3 Schoosls tutorial</a> is what I'm using for help. All help and suggestions are greatly appreciated.</p>