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

  • SEARCH
  • Home
  • 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 6980779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:04:15+00:00 2026-05-27T18:04:15+00:00

I have been looking for some examples and solutions using the jquery-datatables-editable plugin and

  • 0

I have been looking for some examples and solutions using the jquery-datatables-editable plugin and not had any luck. What I want to do is be able to set the editor for a column based on some identifier in that particular row. So for some rows a column may not be editable and other rows that column will have a select editor. I also need to have a column which always has a select editor which gathers data from a MySQL table but it will be filtered by a different parameter depending on the particular row.

Rough Example:

Col1          Col2            Col3            Col4
data1         null editor     select editor   select editor filter by 'a'
data2         select editor   null editor     select editor filter by 'b'
data3         select editor   null editor     select editor filter by 'b'
data4         null editor     select editor   select editor filter by 'a' 

I gather the table data from a MySQL database and render the HTML table using PHP so I can use this to place an id or class on the row, or on the table cells to identify which scenario is needed for each row. I am not sure where and how to get and pass the information to customise the type of editor that is used.

I have tried to search for this information and have found a couple of forum discussions on the DataTables forum which may relate to what I need – here and here in the third paragraph. My problem is that while I’m not exactly clueless I’m not finding them easy to understand and adapt to my problem (this level of jQuery is new to me). I’m hoping that there is a simple-ish solution and that I’ve either been searching poorly or it is so simple and obvious that nobody else has had trouble doing it.

  • 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-27T18:04:16+00:00Added an answer on May 27, 2026 at 6:04 pm

    Well what i did was to put the class editable on the td i wanted to make editable and then i used a class selector like this to make them editable:

    $('td.editable', oTable.fnGetNodes()).editable( 
    

    you should use classes for things like this one and not ids, because ids should be unique on the page

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

Sidebar

Related Questions

I've been looking at some server logs using tail -f recently, and have thought
I have been looking over some of the android source, and the examples given
Recently I have been looking at jquery/javascript solutions to emulating the placeholder attribute, but
I have been looking for some simple examples of how to best use Castle
I have been looking through some code on an open source project recently and
I have been looking in to doing some test driven development for one of
I have been looking around on the web and found some articles about the
I have been looking for an answer for some time now, hope you could
I am looking for some input on something I have been thinking about for
I've been writing some jQuery functions that have JavaScript variables and looping, etc inside

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.