Search and filter rows based on click of an element in the DataTables

Search and filter rows based on click of an element in the DataTables

Sushmitha_Sushmitha_ Posts: 1Questions: 0Answers: 0

Initial Table:

Expected Result:

When I click on ‘Success’ in row ‘A’ and Column ‘Commit’, I want the entire row ‘A’ to be displayed as shown below:

If there are similar rows, it must be displayed as shown below:

My code:
On click of Success:
column.search(this.value).draw();

My Output:

How do I retrieve the expected result? Is there any inbuilt function in datatables?

Thank you in advance.

Replies

Sign In or Register to comment.