Get title attr from a cell

Get title attr from a cell

Jim3540Jim3540 Posts: 15Questions: 5Answers: 0

Hello All,

A sort question: How do I get the title attr from a cell?

data = table.cell(j, i).data(); // Get the date
titleAttr = table.cell(j, i) ??

Cheers Jim

Answers

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    You would get the node with cell().node(), then you could use jQuery to get the attribute.

    Colin

  • Jim3540Jim3540 Posts: 15Questions: 5Answers: 0

    Hello again,

    I'm not sure how the syntax will be.How will the syntax be with jQuery? I have serached but I can not find any example:(

    Cheers Jim

  • Jim3540Jim3540 Posts: 15Questions: 5Answers: 0
    edited November 2021

    Thanks for pointing in the correct direction.

    My solution:

    temp = table.cell(j, i).node();
    title = $(temp).attr('title');

Sign In or Register to comment.