jeditable on just one column

jeditable on just one column

MilesMiles Posts: 12Questions: 0Answers: 0
edited August 2009 in General
Hi,

I was wondering if it's possible to apply the jeditable functionality to just one column of the table, however to do so you'd have to assign a unquie identifier, as "#tableid tbody td" obviouly applies to all of them!

Is it possible?

Regards,

Miles

Replies

  • Luda AmebaLuda Ameba Posts: 11Questions: 0Answers: 0
    edited August 2009
    Hi Miles
    It is possible, if you are useing editable.html from download section, for example just replace "#tableid tbody td" with '#example tr :first-child' as result of that only the first column will be editable . :)

    There is many ways to do that this is just one of them, to learn more go to http://docs.jquery.com/Selectors :)

    Luda Ameba
  • bakaynbakayn Posts: 14Questions: 0Answers: 0
    i found the solution for edit a determinated column (proven functionality):
    [code] jQuery('table.styleTable tbody tr td:nth-child(7)').editable( { .... } ); [/code]

    '7' is the number the editable column.
This discussion has been closed.