selecting text from link using parent-child method - Javascript
I have a code as below;

    <td class="class1" colspan="5">
    <a class="class2" href="LINKLINK">TEXTDATA</a>
    </td>

I can select the link text by taking `('.class2').text()`. But I want to grab the text using children method. How can I grab the same if I have no class for the link (class2) and have only class1. I think the solution will be something like `('.class1').children('a').text()`.

How can I do this? I am a beginner.

Thanks in advance...`:)`
selecting text from link using parent-child method - Javascript
===

I have a code as below;

    <td class="class1" colspan="5">
    <a class="class2" href="LINKLINK">TEXTDATA</a>
    </td>

I can select the link text by taking `('.class2').text()`. But I want to grab the text using children method. How can I grab the same if I have no class for the link (class2) and have only class1. I think the solution will be something like `('.class1').children('a').text()`.

How can I do this? I am a beginner.

Thanks in advance...`:)`