I’m trying to extract a text from td as discussed here
Replacing a part of text inside a td
$('.my-table tr').each(function() {
var contact = $(this).find('td').eq(1)[0].childNodes[0].nodeValue;
$(this).find('td').eq(1).contents()[0].data = contact.substring(0,10);
});
But contact.substring(0,10); doesn’t seem to work and it just shows empty.
How can i fix this?
Try this:
What is the alert value you are getting?? or are you getting any alerts??