i am trying to disable all the controls inside the table row using jquery, but not being able to do so...below is the my html code
<tr id="trChild2">
<td>
2
</td>
<td style="height: 30px;">
<%:Html.TextBoxFor(m=>m.childName2) %><%--<br />
<%: Html.ValidationMessageFor(m=>m.SpouseName,null,new{@Class="field-validation-message"}) %>--%>
</td>
<td style="height: 30px; text-align: center;">
M<%: Html.RadioButtonFor(m=>m.genderIdChild2,1) %>
F<%:Html.RadioButtonFor(m=>m.genderIdChild2,2) %>
</td>
<td style="height: 30px; text-align: center;">
<%:Html.TextBoxFor(m=>m.ageChild2,new{Style="width:30px;",maxlength=3}) %><%--<br />
<%:Html.ValidationMessageFor(m=>m.SpouseAge,null,new{@Class="field-validation-message"}) %>--%>
</td>
<td style="height: 30px; text-align: center;">
Married<%: Html.RadioButtonFor(m=>m.maritialStatusChild2,1) %>
UnMarried<%:Html.RadioButtonFor(m=>m.maritialStatusChild2,2) %>
</td>
</tr>
below is my jquery code, which i have used to disabled all the controls inside the table row.
$("#trChild2").find("input,button,textarea").attr("disabled", true);
please note that the #trChild2 is my table row id
kindly let me know what i am doing wrong...
thanks & regards Sameer shaikh