Disable editing on 2 columns

Disable editing on 2 columns

wyatt121wyatt121 Posts: 9Questions: 1Answers: 0

Hi,

I needed to disable bubble editing on my second and sixth columns. This code worked perfectly.

$('#example').on( 'click', 'tbody td:not(:first-child, :nth-child(2), :nth-child(6))', function (e) {
        editor.bubble( this );
    } );

I hope this helps you.

Regards,

Wyatt

Replies

  • alderhernandezalderhernandez Posts: 33Questions: 11Answers: 1

    Hello! i need help, your codeis not working, i am addi new rows dinamic to mi table,I needed to disable editing in my first en second columns

  • allanallan Posts: 63,772Questions: 1Answers: 10,511 Site admin

    @alderhernandez - Please link to your page showing the issue so it can be debugged.

    @wyatt121 - Sorry I didn't reply to your post at the time. Thanks for sharing this, much appreciated!

    Allan

  • alderhernandezalderhernandez Posts: 33Questions: 11Answers: 1

    @allan i am working in localhost. using wampserverI 'm adding columns dynamically and I need to disable the edition in two columns

  • alderhernandezalderhernandez Posts: 33Questions: 11Answers: 1

    @allan @wyatt121 thanks for not helping, After two hours I did

This discussion has been closed.