$ ( " table tr " ). each ( function (){ var tr = $ ( this ); //alert(tr.text());//This output is the text of tr // If you want to get td Need to traverse tr again tr . click ( function () { var tds = tr . find ( "td" ); tds . each ( function (){ var td= $ ( this ); alert ( td . text ()); // this is the text of the td }); }) });
Get table click row content
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326432770&siteId=291194637
Ranking