Exiting rows().every()

Exiting rows().every()

M1408M1408 Posts: 28Questions: 8Answers: 1

I am using rows().every() to loop through the table and find a particular row

Once the row is found I need to exit the loop
I have been returning false, but instead of exiting the loop it only starts it back up from the start
Please advise?

This question has an accepted answers - jump to answer

Answers

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

    You can't exit a loop function like that, just like you can't with jQuery.each.

    Having said that, it certainly start the loop again. It should just carry on.

    It sounds like you might actually want to use a function as a row-selector if you are attempting to find a specific row.

    Allan

  • M1408M1408 Posts: 28Questions: 8Answers: 1

    Sorry I did not respond sooner.
    I was able to work around it without using the rows.every()
    Thanks!

This discussion has been closed.