Is there a way to find a specific value inside of existing datatable? After finding it I want to like put the information of row in a single var for example its like selected then getting the data like this
$('#datatable').DataTable().rows({selected:true}).data();
now I want it to work like searching if I input two and the datatable has that value on specific column It will give me the true in if else, Then I want it to store that value in a var in javascript.
I also know how to get all the data in datatable. I just don't know how to get the data of a single row using if else. Thanks for the help!
EDIT:
Here's what I want to happen
The user will input a data > The System will check if that data is existing in datatable > If not existing error will occur > If existing, Store the whole row in var e.g: var data = //the whole row data