hello everyone, I am trying to implement a JQuery DataTables to my grid view inside a content page. Unfortunately, this is what I get

It treats the radio button as the target table

Below is my script
$(document).ready(function () {
$("#ContentPlaceHolder1_gvList").prepend($("").append($(this).find("tr:first"))).DataTable();
});
I tried to use below script but nothing happens:
$(document).ready(function () {
$('#<%=gvList.ClientID%>').DataTable();
Hope someone can help me.


Sachin SinghRank #66 · 26.2K reputationPosted Sep 1, 2021, 12:56 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Sep 1, 2021, 1:04 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Sep 1, 2021, 1:06 AM EDT
I am not sure if the reason is the class inside the gridview