Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5951611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:33:44+00:00 2026-05-22T17:33:44+00:00

I am using the datatable plugin for jQuery, I have a table on my

  • 0

I am using the datatable plugin for jQuery, I have a table on my html page that I dont want sorting on, but I am using the plugin to paginate the results, and also have verbage if there is nothing in the table. I have no problem stopping the table from sorting using (“bSort”: false), but it still makes the header of the tables clickable, which can be frustrating to the user because there is no change when clicked. Here is the plugin I am using: http://datatables.net/ , and here is my HTML:

  <table align="center" id="t1" width="57%">
    <thead>
      <tr>
        <th class="headerClass" width="12%">Type</th>
        <th class="headerClass">Description</th>
        <th class="headerClass" width="3%">Campus</th>
        <th class="headerClass" width="14%">Date </th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="normal"><%=lostFound%></td>
        <td class="normal"><%=lostDesc%></td>
        <td class="normal"><%=lostLoc%></td>
        <td class="normal"><%=lostDate%></td>
      </tr>
    </tbody>
  </table>

And here is my jS:

  var $t1 = $("#t1");
    $t1.dataTable({
      "bSort": false, 
      "oLanguage" : bsLfReq.O_LANGUAGE, 
      "bLengthChange": false, 
      "bFilter": false, 
      "bAutoWidth": false, 
      "iDisplayLength": 3, 
      "bInfo": false
      });

So basically I want the table to still use the datatable plugin, but not have the headers clickable. Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:33:44+00:00Added an answer on May 22, 2026 at 5:33 pm

    I tried to recreate your scenario. Check this jsfiddle.
    For me deactivating sorting via "bSort" : false works like a charm.

    With sorting (see the arrows):enter image description here
    Without sorting:enter image description here

    UPDATE:

    Define a cursor for your headerClass:

    #headerClass {
       cursor: default;
    }
    

    Check out this reference for cursor styles.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the jquery datatable plugin. I have the following code that sets
I have a column with buttons in a table I'm using jQuery datatable plugin.
i am using 'datatable jquery plugin' with server-side option to load table records.but i
I am using JQuery with the DataTable plugin, and now I have a big
I am using jQuery Datatable plugin for rendering a table as jQuery DataTable. I
I'm using jQuery DataTable plugin, but I got a concern where the scripts loading
I have started using the DataTables plugin (v1.6.2) for jQuery (v1.4.2), and I would
I want to remove duplicates from my DataTable so I'm using DataTable.AsEnumerable().Distinct(DataRowComparer.Default) but it
I'm using the jQuery DataTables plug-in for my HTML table. Is there a way
hai.all..can you tell me how to make table in jquery? i want using this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.