Adding a bootstrap attribute to cells in a column

Adding a bootstrap attribute to cells in a column

adam_y2005@hotmail.comadam_y2005@hotmail.com Posts: 5Questions: 3Answers: 0

Hi

I'm trying to add an attribute to the first column in my debatable

so I just add a class in the columns setting called popperup.

however of the bootstrap popover to work i need to add the attribute "tabindex":"0"

This can be done with $(".popperup").attr({"tabindex":"0"})

however this only adds it to the first entries that load 10 in my datatable which then allows the popover to work the problem is when you click the next paginate button or numbered buttons it will not work as the tabindex = 0 is missing

I have tried using

     $("#Ttable3").on('page.dt', function() {

        console.log("here")

        $(".popperup").attr({"tabindex":"0"})

    });

This only works once you have gone to the next page and then go back again. so you click next page or go to page 2/3/4 etc nothing happens. you go back to page 1 then back to page 2/3/4 and it will work

how can I get it so "tabindex":"0" is on every cell in a column

Answers

This discussion has been closed.