How to make DataTables default select the first line?

How to make DataTables default select the first line?

布丁熊布丁熊 Posts: 1Questions: 1Answers: 0

When there is only one data in the table, select it by default.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,356Questions: 1Answers: 10,444 Site admin
    Answer ✓

    Is this immediately after the table has initialised? If so, just use row().select(). You can use page.info() to determine if there is only one row in the table.

    Allan

This discussion has been closed.