Question: ```
<tr id="trHdn">
<asp:hiddenfield runat="server" id="hdncontrol1" />
<asp:hiddenfield runat="server" id="hdncontrol2" />
</tr>

```

Need to write jQuery to update all hiddenfield values to '**true**' within tr '**trHdn**' in 1 line.

This is a page in asp.net Web Application

Answer: 
You can use the parent > child selector in jquery

```
$("#trHdn > input[type='hidden']").val('true');

```

It's worth noting that this only handles direct descendants of tr, if you have hidden fields nested deeper inside of a tr, then you may want to leave out the '>'

```
$("#trHdn input[type='hidden']").val('true');

```
You can manipulate all hidden fields (assumed to be having an `id` that starts with `hdncontrol`) using:

```
$('#trHdn [id^="hdncontrol"]').val(true);

```