selector - Need JQuery to select a table only if its 1st row has more than 1 column -


I have to select and work with a table object with jQuery, but only when it is less than with one There is less one row column. The following selector works, but I find only one way:

  $ ('# my_table_is: has (tr.)'). DoSomething ();  

The successes I have tried have no success:

  $ ('# my_table_id: has (tbody & gt; tr & gt; Td: eq (1)) '). Do something (); $ ('# My_table_id: is (TD tr: nth-child (1))'). DoSomething (); . $ ('# My_table_id: (TD: eq (1))') DoSomething ();  

What combination of selector and filter will this work?

BTW, I need this reason that the tableer with a multi-column sort list will apparently blow when the table output only has 1 column.

How about checking a good wetting?

  if (1  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -