Reputation: 1078
Is it possible to remove class="dataTable"
from datatable and apply our own class. If so, then how to do it ?
I tried Jquery something like this.
$('#sourceDetails').removeClass('dataTable');
But no effect.
Upvotes: 3
Views: 8959
Reputation: 58573
Try this one:
$(function () {
setTimeout(function () {
$('#sourceDetails').removeClass('dataTable');
}, 100);
});
Upvotes: 0
Reputation: 82241
Try:
$('#someid').addClass('newclass').removeClass('dataTable');
Upvotes: 0
Reputation: 15387
Try this
$('#sourceDetails').addClass("NewClassName").removeClass('dataTable');
Upvotes: 2