Hi,
I want to use replace function in jquery
here is my code
$("#GridView1 tr td").filter(":not(td:first-child) ").each(function () {
var cellText = $(this).text();
if ((cellText).contains('M')) {
(cellText).replace('M', '');
$(this).css('background-color', 'Red');
}
});
background color is changing but charactar M is not replacing