jquery - How to wrap a td with anchor tag on datatables plugin -
i have using jquery-datatable
serverside. working fine, want add anchor tag on 1 coloumn doing this:
$('td:eq(1)', nrow).wrap('<a href="/hello/"/>');
which resulting in following error:
scurrentclass = ntds[i].classname;
i want anchor tag value of specific row like:
<a href="ok">ok</a> <a href="hello">hello</a>
--> hello , ok
values
how this. thank you
you should use .append()
instead of .wrap()
$('td:eq(1)', nrow).append('<a href="hello">hello</a>');
Comments
Post a Comment