I have the following tr:

```
<tr>
    <td>My Text</td>
    <td><input class="btn btn-primary" value=" Test " onclick="myFunc(this);" /></td>
</tr>

```

I'm trying to get the text "My Text" from previous td

```
function myFunc(obj){
    console.debug($(obj).closest('td').previous('td').text());
}

```

However, it is returning: `TypeError: $(...).closest(...).previous is not a function`

Isn't closest() a function?

Thanks