The jQuery find() method returns the children of the selected item. You already select <tr> with the dname class, and then try to find the descendant, which is also <tr> .
https://api.jquery.com/find/
The following should work:
jQuery(".dname").find("td:eq(1)").text();
Edit: text() instead of val() as @ freedomn-m pointed out
source share