[jQuery] Re: Looping through headers object

2009-01-22 Thread shinobi
Sorry, yes, I'm using tablesorter plugin. Thank you Ricardo for the answer, this evening i'm going to try your solution. Mattia On 22 Gen, 06:06, Ricardo Tomasi wrote: > I assume you're using the Tablesorter plugin? This should work. > > var headers = {}; > $('#table thead th').each(function(i

[jQuery] Re: Looping through headers object

2009-01-21 Thread Ricardo Tomasi
I assume you're using the Tablesorter plugin? This should work. var headers = {}; $('#table thead th').each(function(index){ if (index > 2) headers[index] = { sorter: false }; }); $("#table").tablesorter({ headers: headers }); You can also disable headers using metadata, with a

[jQuery] Re: Looping through headers object

2009-01-21 Thread Ami
Please give as a simple HTML of your table. so we can try help you On Jan 22, 12:21 am, shinobi wrote: > Hi everybody. > I have an html table with a fixed number columns (or headers) and a > variable number of columns, that may vary in numbers depending on data > in the DB. > > I want to make so