Jeez. That really is the most obvious solution :)

Jake McGraw wrote:
>
> Not sure this is the best way, but you could simulate a click on the
> header when the button is clicked like this:
>
> $("[EMAIL PROTECTED]").click(function(){
> $("table th:eq(0)").click();
> });
>
> This will cause the first column (th:eq(0)) to be "clicked" and then
> sorted when a button is "clicked". Note that $().click() without any
> arguments simulates a "click".
>
> - jake
>
> On 4/3/07, Dmitrii 'Mamut' Dimandt <[EMAIL PROTECTED]> wrote:
>>
>> Hi.
>>
>> A friend of mine is using the tablesorter plugin on one of the tables on
>> the page. He needs to sort a column when a button on the page is
>> pressed. That is, not the header of the column, but a completely
>> separate button on the page.
>>
>> How can this be achieved?
>>
>> Thank you
>>
>>
>>
>

Reply via email to