i used below coding to enable/disbale textbox when user check checkbox. by default it should be disable when user check it have to be enable. i tried this but not working.
(Note: by default its in disable mode but when i check the checkbox still in disable mode)
<script src="../js/jquery.min.js" type="text/javascript"></script>
<script src="../js/global-script.js" type="text/javascript"></script>
<script src="../js/jquery-1.5.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$("input[type=textbox][id*=txtfrmDate]").attr("disabled", true);
$("input[type=checkbox][id*=ChkDate]").click(function() {
if (this.checked)
$(this).closest("tr").find("input[type=text][id*=txtfrmDate]").attr("disabled", false);
else
$(this).closest("tr").find("input[type=text][id*=txtfrmDate]").attr("disabled", true);
});
});
<asp:TextBox ID="txtfrmDate" runat="server" CssClass="txtbox datebox" Style="z-index: 98; width: 100px;"> </asp:TextBox>