Trying to select the textarea inside of the td by the name. None of the normal methods seem to be working:
<script>$(document).ready(function () {
$( document ).on( 'click', 'button', function (event) {
$(".myForm [name='name']").val('Hello World!');
$(".myForm td [name='name']").val('Hello World!');
$(".myForm td textarea [name='name']").val('Hello World!');
$(".myForm textarea [name='name']").val('Hello World!');
});
});</script>
<table>
<tr>
<form class="myForm">
<td>
<textarea name="name"></textarea>
</td>
</form>
</tr>
</table>
<button>click me</button>
</td>
</form>
</tr>
</table>
click me