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 7567739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:44:26+00:00 2026-05-30T14:44:26+00:00

using datatables and jeditable plugins. Whenever I use this selector: .$(‘td[class!=readonly]’) I’m unable to

  • 0

using datatables and jeditable plugins. Whenever I use this selector: .$(‘td[class!=”readonly”]’) I’m unable to do in-line edits. If I comment out the selector, then everything works great. I dont’ want to edit the checkbox column for obivous reasons.

any help?

thanks!!

here’s my init.

$(document).ready(function() {
    $('#example').dataTable({
        "sAjaxSource": "js/DataTables-1.9.0/scripts/server_processing.php",
                "aoColumns": [
                            {"bVisible": false },//id                                                                                               
                            {},//code
                            {},//project
                            {},//task
                            {},//type
                            {},//description
                            {"fnRender": function (oObj) {
                                return "<input type='checkbox' class='readonly' value='" + oObj.aData[0] + "' name='check'>";
                                },
                            "sClass": "readonly",
                            "bSearchable": false,
                            "bSortable": false
                            }//checkbox
                            ]

                })
                .$('td[class!="readonly"]')
                .makeEditable({
                    "sUpdateURL": "js/DataTables-1.9.0/scripts/server_editing.php"
            })
        } );

Here’s my table:

<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead>
    <tr>
        <th width="2%">ID</th>                  
        <th width="10%">Code</th>
        <th width="10%">Project</th>
        <th width="10%">Task</th>
        <th width="10%">Type</th>
        <th width="50%">Description</th>
        <th width="2%">Delete</th>
    </tr>
</thead>
<tbody>
    <tr>
        <td class="dataTables_empty">Loading data from server</td>
        <td class="dataTables_empty">Loading data from server</td>
        <td class="dataTables_empty">Loading data from server</td>
        <td class="dataTables_empty">Loading data from server</td>
        <td class="dataTables_empty">Loading data from server</td>
        <td class="dataTables_empty">Loading data from server</td>
        <td align="center" class="readonly">Loading data from server</td>
    </tr>
</tbody>
<tfoot>
    <tr>
        <th>ID</th>              
        <th>Code</th>
        <th>Project</th>
        <th>Task</th>
        <th>Type</th>
        <th>Description</th>
        <th>Delete</th>   
    </tr>
</tfoot>

edit

thanks for the syntax help everyone.

I changed it to this, but still no dice?? Again, removing the selector inline editing works.??

$(document).ready(function() {
    $('#example').dataTable({options});
    $('td').each(function(){
        var self = $(this);
        if(self.hasClass("readonly") != true){
            self.makeEditable({"sUpdateURL": "js/DataTables-1.9.0/scripts/server_editing.php"})
        }
    });
});
  • 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-30T14:44:28+00:00Added an answer on May 30, 2026 at 2:44 pm

    Try using $().hasClass();

    You shouldn’t string those together, a jquery element is not a method or property of another… I’m surprised it works with the selector removed too… try this:

    $(document).ready(function() {
        $('#example').dataTable({
           "sAjaxSource": "js/DataTables-1.9.0/scripts/server_processing.php",
           "aoColumns": [
              {"bVisible": false},//id     
              {},//code
              {},//project
              {},//task
              {},//type
              {},//description
             {"fnRender": function (oObj) {
                   return "<input type='checkbox' class='readonly' value='" + oObj.aData[0] + "' name='check'>";
             },
            "sClass": "readonly",
            "bSearchable": false,
            "bSortable": false
            }//checkbox
         ]
    
        });
        $('td').each(function(){
            var self = $(this);
            if(self.hasClass("readonly") != true){
                self.makeEditable({"sUpdateURL": "js/DataTables-1.9.0/scripts/server_editing.php"})
             }
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Flask Flask-sqlalchemy Sqlalchemy Jquery Datatables (jquery plugin) Jeditable (jquery plugin) Consider this user
I am using jEditable to allow inline edit for my DataTables. I use a
I am using the datatables jquery plugin. I am trying to use it as
I am using Jeditable, http://www.appelsiini.net/projects/jeditable And DataTables, http://datatables.net/download/ To try and make an live
I am using datatables in my application. Whenever user click on any row I
I am using DataTables plugin to fetch and paginate my table use ajax calls.
I am using jquery DataTables and jEditable to allow inline editing of EACH CELL
When using the jQuery datatables plugin , why am I getting this error? k
I'm using datatables with the jeditable plugin, I have it setup to update directly
I am using Datatables + jEditable to display data from my db and allow

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.