Thursday 15 April 2010

How to apply a changes on all the tables on a page except a few (using jquery)? -


I'm trying to apply some changes to all the tables on one page except some of them.

I tried to do this but it is not working.

  $ ("table: not (#tblHdrContent tr"). ("Td: Eq (1)"). CSS ("text-align", "right");    

I think the problem may be in your .find () call. Try it:

  $ (document) .ready (function () {$ ("table: not (#tblHdrContent) tr td: eq (1)"). CSS ("text-align ", "right"); }); Edit: Also in the belt, only one side note I used eq (0) because I wrote only one TD. Just one of the warnings is that: eq works by 0-based index  

- Ken

No comments:

Post a Comment