Speeding up querying of inputs

Speeding up querying of inputs

sWa19sWa19 Posts: 2Questions: 1Answers: 0

What is the quickest way of extracting inputs from rows? On a table of around 500 rows, with 13 inputs per row, that's 6,500 dom hits using DataTables.$. This takes over a minute on Chrome and crashes Internet Explorer.

We need to do this as each row requires validating before posting back to the server.

We're generating the table from an array of JavaScript objects if it makes any difference with deferred rendering turned off.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    Answer ✓

    Perhaps try: $('input', table.rows().nodes()).

    Allan

  • sWa19sWa19 Posts: 2Questions: 1Answers: 0

    Thanks Allan, got me on the right track :)

This discussion has been closed.