I had a requirement of extracting the contents inside a table cell.
Suppose we have a table like below:
Simple enough, the jQuery script goes like:
Suppose we have a table like below:
Here I am |
Simple enough, the jQuery script goes like:
var tdContent = $('.someCSS').context.innerHtml();Lo! We get the "Here I am" text.
$('.someClass').html() works as well.
ReplyDelete