I have used below jquery code for my bootstrap table
$(document).ready(function() {
$('.table>tr>td').addClass('redBg');
console.log('hg');
});
As well as i tried this one
$(document).ready(function() {
$('.table>tbody>tr>td').addClass('redBg');
console.log('hg');
});
But the class will not added to the td tag,
Here is the working fiddle https://jsfiddle.net/udarazz/0vx7tjfq/
Can anyone help me to fix this issue?
$('.table tr > td').addClass('redBg').infront of html defined tags. you can use.only with classnamestable, if you look inside the snippet