jQuery: Get <td>'s html only
Posted
by Poku
on Stack Overflow
See other posts from Stack Overflow
or by Poku
Published on 2010-05-28T12:53:34Z
Indexed on
2010/05/28
13:01 UTC
Read the original article
Hit count: 163
JavaScript
|jQuery
Hey,
i have this code. It returns all the td code including the td /td tags. I want it to only return the content/html of the td
<td>Hey</td>
should give me just
Hey
jQuery("#ReportTable", html).each(function (index, tr) {
arr[index] = jQuery("tbody tr", tr).map(function (index, td) {
return jQuery(td).html();
});
});
© Stack Overflow or respective owner