JavaScript Jquery tablesorter plugin trying to disable headers from sorting but it is not working jquery tablesorter plugin,jquery tablesorter plugin download,jquery.tablesorter.js

So I have a table that I am sorting using the jQuery plugin tablersorter (tablesorter.com). there are two headers in my table that I do not want to be able to sort by and am trying to disable. I used the example provided on the website but it just seems to break the sorting and not let me sort at all. This is my current code.

HTML

<table border="0" cellpadding="0" cellspacing="0" id="orgTable" class="tablesorter">
<thead>
<tr>
    <th><?=$languageDB->berkGet("object_organization_name");?></th>
    <th><?=$languageDB->berkGet("object_organization_description");?></th>
    <th><?=$languageDB->berkGet("object_organization_system_name");?></th>
    <th><?=$languageDB->berkGet("object_organization_status");?></th>
    <th><?=$languageDB->berkGet("object_organization_client");?></th>
    <th><?=$languageDB->berkGet("object_organization_actions");?></th>
</tr>
</thead>
<tbody>
<?foreach ($organizations as $organizationObj) {
    foreach ($organizationObj as $curOrg) {
        if($curOrg->get("name") == "System"){
            //Hide the System organization from vCloud 
            continue;
        }?> 
    <tr>
        <td><?=$curOrg->get("name");?></td>
        <td><?=$curOrg->get("description")===""?"None":$curOrg->get("description")?></td>
        <td><?=$curOrg->get("systemName")?></td>
        <td><?=$status[$curOrg->get('status')];?></td>
        <td id="client<?=$curOrg->get('id');?>">            
            <?if($curOrg->get("clientId")==0){ ?>
                <button class="btn btn-tiny btn-reverse associate" data-uid="<?=$curOrg->get('id');?>"><?=$languageDB->berkGet("action_associate");?></button>
            <?} else{ 
                $client=new client($curOrg->get("clientId"));?>
                <?=$client->get("companyName");?>
            <?}?>
        </td>
        <td><a target='_blank' href="/organizationDetails.php?id=<?=$curOrg->get('id');?>" class="btn btn-tiny"><i class="fa fa-info-circle"></i></a>
            <?if($curOrg->get("clientId")>0){ ?>
                <button class="btn btn-danger btn-tiny" id="remove" data-uid="<?=$curOrg->get('id');?>" data-name="<?=$curOrg->get('name');?>"><i class="fa fa-trash"></i> </button>
            <?}?>
    </tr>   
    <?}
}?>
</tbody>
</table>

JAVASCRIPT

    $(document).ready(function() { 
    $("orgTable").tablesorter({ 
        headers: { 
            4: { 
                sorter: false 
            }, 
            5: {               
                sorter: false 
            } 
        } 
    }); 
});
Answer:1

i have table <table width="100%" border="0" cellspacing="0" cellpadding="0" class="activity_tab"> <tr id="list_1"> <td><span class="new_act">Folder files Created&...

i have table <table width="100%" border="0" cellspacing="0" cellpadding="0" class="activity_tab"> <tr id="list_1"> <td><span class="new_act">Folder files Created&...

  1. class selected table

i have a base class function Base(){ this.children = new Array(); } Base.prototype.Add = function(child){ this.children.push(child) } function Sub1(){...} Sub1.prototype = new Base(); ...

i have a base class function Base(){ this.children = new Array(); } Base.prototype.Add = function(child){ this.children.push(child) } function Sub1(){...} Sub1.prototype = new Base(); ...

  1. how does this javascript work
  2. does javascript have classes
  3. does javascript need semicolons
  4. does javascript pass by reference
  5. does javascript require semicolons
  6. does javascript support automatic type conversion
  7. does javascript allow exception handling
  8. does javascript have garbage collection
  9. does javascript support inheritance
  10. does javascript have interfaces
  11. does javascript compile
  12. does javascript have pointers
  13. does javascript have dictionaries
  14. does javascript have inheritance
  15. does javascript alert stop execution
  16. does javascript support multithreading
  17. does javascript cost money
  18. does javascript work on iphone
  19. does javascript map preserve order
  20. does javascript support multiple inheritance

Heres my problem. Might be a bit trivial. I am using node.js to write a form which has radio buttons, drop down boxes. I have been able to save data and also retrieve it successfully but I am not able ...

Heres my problem. Might be a bit trivial. I am using node.js to write a form which has radio buttons, drop down boxes. I have been able to save data and also retrieve it successfully but I am not able ...

I used the Push Plugin in the app.ready() like this https://github.com/phonegap-build/PushPlugin window.onNotification = function(e) { switch( e.event ) { case 'registered': ...

I used the Push Plugin in the app.ready() like this https://github.com/phonegap-build/PushPlugin window.onNotification = function(e) { switch( e.event ) { case 'registered': ...

  1. data binding between components
  2. data binding between components angular 6
  3. data binding between components angular
  4. data binding between components angular 4
  5. data binding between components lightning
  6. data binding between parent and child component
  7. data binding between components angularjs
  8. data binding between two components
  9. data binding between components vue
  10. data binding between components angular 7
  11. data binding between components angular 8
  12. angular data binding between two components
  13. angularjs data binding between controllers
  14. c# data binding between classes
  15. wpf data binding between windows
  16. angular2 data binding between components
  17. two way data binding between components
  18. two way data binding between components angular
  19. two way data binding between controller and directive
  20. two way data binding between components angular 4