i am fetching data using Like
keyword, that mean results may contain not exactly match. Now i want to highlight the searched string
form the whole data? I am showing data in a table
.
is there any easy way to do this?
Here is code to show data
<table class="table table-striped table-bordered bootstrap-datatable datatable">
<thead>
<tr>
<th>Surah</th>
<th>Ayah</th>
<th>Contents</th>
</tr>
</thead>
<tbody>
@foreach (var n in @ViewBag.test)
{
<tr>
<td class="center"> @n.surah_name </td>
<td class="center"> @n.ayah </td>
<td style="text-align:right; font-size: 20px; height:90px; vertical-align:middle; line-height : 75px"> @n.verse </td>
</tr>
}
</tbody></table>
i want to highlight on click event of button!