If you want to click on a piece of html text inside a td, span, div, p…etc, you’d use jQuery’s on method:
1 2 3 |
$("#detailedBasicElderInfo #basicElderContent tr td").on( "click", function() { alert( $(this).text() ); }); |
If you want to click on a piece of html text inside a td, span, div, p…etc, you’d use jQuery’s on method:
1 2 3 |
$("#detailedBasicElderInfo #basicElderContent tr td").on( "click", function() { alert( $(this).text() ); }); |